Пожалуйста, включите JavaScript.
Главная
Обзор
Помощь
Вход
jan
/
mustache.js
зеркало из
https://github.com/janl/mustache.js
Следить
1
В избранное
0
Форкнуть
0
Код
Задачи
0
Релизы
46
Вики
Активность
Просмотр исходного кода
mustache compat: Don't barf on unknown variables.
tags/0.2
Jan Lehnardt
16 лет назад
Родитель
2f8512e091
Сommit
0bb4776def
3 измененных файлов
:
4 добавлений
и
3 удалений
Разделённый вид
Опции Diff
Показать статистику
Скачать Patch файл
Скачать Diff файл
+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|
Редактирование
Предпросмотр
Загрузка…
Отмена
Сохранить