이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
탐색
도움말
로그인
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
커밋
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|
쓰기
미리보기
불러오는 중...
취소
저장