S JavaScriptem funguje tato webová stránka lépe.
Domů
Procházet
Nápověda
Přihlásit se
jan
/
mustache.js
zrcadlo
https://github.com/janl/mustache.js
Sledovat
1
Oblíbit
0
Rozštěpit
0
Zdrojový kód
Úkoly
0
Vydání
46
Wiki
Aktivita
Procházet zdrojové kódy
mustache compat: Don't barf on unknown variables.
tags/0.2
Jan Lehnardt
před 16 roky
rodič
2f8512e091
revize
0bb4776def
3 změnil soubory
, kde provedl
4 přidání
a
3 odebrání
Rozdělené zobrazení
Diff Options
Zobrazit statistiky
Download Patch File
Stáhněte rozdílový soubor
+1
-1
examples/error_not_found.txt
+2
-1
mustache.js
+1
-1
test/mustache_spec.rb
+ 1
- 1
examples/error_not_found.txt
Zobrazit soubor
@@ -1 +1 @@
ERROR: 'foo' not found in context
+ 2
- 1
mustache.js
Zobrazit soubor
@@ -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
Zobrazit soubor
@@ -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|
Zapsat
Náhled
Načítá se…
Zrušit
Uložit