Bu web sitesi JavaScript ile daha iyi çalışır.
Ana Sayfa
Keşfet
Yardım
Giriş Yap
jan
/
mustache.js
şunun yansıması
https://github.com/janl/mustache.js
İzle
1
Yıldızla
0
Çatalla
0
Kod
Konular
0
Sürümler
46
Wiki
Aktivite
Kaynağa Gözat
mustache compat: Don't barf on unknown variables.
tags/0.2
Jan Lehnardt
16 yıl önce
ebeveyn
2f8512e091
işleme
0bb4776def
3 değiştirilmiş dosya
ile
4 ekleme
ve
3 silme
Görünümü Böl
Diff Seçenekleri
İstatistikleri Göster
Yama Dosyasını İndir
Diff Dosyasını İndir
+1
-1
examples/error_not_found.txt
+2
-1
mustache.js
+1
-1
test/mustache_spec.rb
+ 1
- 1
examples/error_not_found.txt
Dosyayı Görüntüle
@@ -1 +1 @@
ERROR: 'foo' not found in context
+ 2
- 1
mustache.js
Dosyayı Görüntüle
@@ -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
Dosyayı Görüntüle
@@ -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|
Yaz
Önizleme
Yükleniyor…
İptal
Kaydet