Šī lapa labāk darbojas, ja pārlūkam ir iespējots JavaScript.
Sākums
Izpētīt
Palīdzība
Pierakstīties
jan
/
mustache.js
spogulis no
https://github.com/janl/mustache.js
Vērot
1
Pievienot zvaigznīti
0
Atdalīts
0
Kods
Problēmas
0
Laidieni
46
Vikivietne
Aktivitāte
Pārlūkot izejas kodu
mustache compat: Don't barf on unknown variables.
tags/0.2
Jan Lehnardt
pirms 16 gadiem
vecāks
2f8512e091
revīzija
0bb4776def
3 mainītis faili
ar
4 papildinājumiem
un
3 dzēšanām
Dalītais skats
Salīdzināšanas iespējas
Rādīt statistiku
Lejupielādēt ielāpa failu
Lejupielādēt izmaiņu failu
+1
-1
examples/error_not_found.txt
+2
-1
mustache.js
+1
-1
test/mustache_spec.rb
+ 1
- 1
examples/error_not_found.txt
Parādīt failu
@@ -1 +1 @@
ERROR: 'foo' not found in context
+ 2
- 1
mustache.js
Parādīt failu
@@ -158,7 +158,8 @@ var Mustache = function() {
if(context[name] !== undefined) {
return context[name];
}
throw({message: "'" + name + "' not found in context"});
// silently ignore unkown variables
return "";
},
// Utility methods
+ 1
- 1
test/mustache_spec.rb
Parādīt failu
@@ -37,7 +37,7 @@ describe "mustache" do
print('ERROR: ' + e.message);
}
JS
run_js(js).should == "
ERROR: 'x' not found in context
\n"
run_js(js).should == "\n"
end
non_partials.each do |testname|
Rakstīt
Priekšskatītījums
Notiek ielāde…
Atcelt
Saglabāt