This website works better with JavaScript.
Начало
Каталог
Помощ
Вход
jan
/
mustache.js
огледало от
https://github.com/janl/mustache.js
Наблюдаван
1
Харесван
0
Разклонения
0
Код
Задачи
0
Версии
46
Уики
Activity
Преглед на файлове
mustache compat: Don't barf on unknown variables.
tags/0.2
Jan Lehnardt
преди 16 години
родител
2f8512e091
ревизия
0bb4776def
променени са
3 файла
, в които са
добавени 4
реда и са
изтрити 3
реда
Разделен изглед
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
Целия файл
@@ -1 +1 @@
ERROR: 'foo' not found in context
+ 2
- 1
mustache.js
Целия файл
@@ -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
Целия файл
@@ -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…
Отказ
Запис