このサイトはJavaScriptを使用しています
ホーム
エクスプローラー
ヘルプ
サインイン
jan
/
mustache.js
ミラー元
https://github.com/janl/mustache.js
ウォッチ
1
スター
0
フォーク
0
コード
課題
0
リリース
46
Wiki
アクティビティ
ソースを参照
mustache compat: Don't barf on unknown variables.
tags/0.2
Jan Lehnardt
16年前
親
2f8512e091
コミット
0bb4776def
3個のファイルの変更
、
4行の追加
、
3行の削除
分割表示
差分オプション
統計情報を表示
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|
書き込み
プレビュー
読み込み中…
キャンセル
保存