Strona działa najlepiej z włączonym JavaScript.
Strona główna
Odkrywaj
Pomoc
Zaloguj się
jan
/
mustache.js
kopia lustrzana
https://github.com/janl/mustache.js
Obserwuj
1
Polub
0
Forkuj
0
Kod
Zgłoszenia
0
Wydania
46
Wiki
Aktywność
Przeglądaj źródła
mustache compat: Don't barf on unknown variables.
tags/0.2
Jan Lehnardt
16 lat temu
rodzic
2f8512e091
commit
0bb4776def
3 zmienionych plików
z
4 dodań
i
3 usunięć
Widok podzielony
Opcje porównania
Pokaż statystyki
Ściągnij plik aktualizacji
Ściągnij plik porównania
+1
-1
examples/error_not_found.txt
+2
-1
mustache.js
+1
-1
test/mustache_spec.rb
+ 1
- 1
examples/error_not_found.txt
Wyświetl plik
@@ -1 +1 @@
ERROR: 'foo' not found in context
+ 2
- 1
mustache.js
Wyświetl plik
@@ -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
Wyświetl plik
@@ -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|
Napisz
Podgląd
Ładowanie…
Anuluj
Zapisz