Tämä sivusto toimii paremmin JavaScriptillä.
Etusivu
Tutki
Apua
Kirjaudu sisään
jan
/
mustache.js
peilaus alkaen
https://github.com/janl/mustache.js
Tarkkaile
1
Äänestä
0
Fork
0
Koodi
Ongelmat
0
Julkaisut
46
Wiki
Activity
Selaa lähdekoodia
mustache compat: Don't barf on unknown variables.
tags/0.2
Jan Lehnardt
16 vuotta sitten
vanhempi
2f8512e091
commit
0bb4776def
3 muutettua tiedostoa
jossa
4 lisäystä
ja
3 poistoa
Jaettu näkymä
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
examples/error_not_found.txt
+2
-1
mustache.js
+1
-1
test/mustache_spec.rb
+ 1
- 1
examples/error_not_found.txt
Näytä tiedosto
@@ -1 +1 @@
ERROR: 'foo' not found in context
+ 2
- 1
mustache.js
Näytä tiedosto
@@ -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
Näytä tiedosto
@@ -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|
Write
Preview
Loading…
Peruuta
Tallenna