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
adding simple test for dot notation support
tags/0.4.0
John Butler
14 yıl önce
ebeveyn
a884509c6a
işleme
3ffc6b2828
3 değiştirilmiş dosya
ile
24 ekleme
ve
0 silme
Görünümü Böl
Diff Seçenekleri
İstatistikleri Göster
Yama Dosyasını İndir
Diff Dosyasını İndir
+6
-0
examples/dot_notation.html
+14
-0
examples/dot_notation.js
+4
-0
examples/dot_notation.txt
+ 6
- 0
examples/dot_notation.html
Dosyayı Görüntüle
@@ -0,0 +1,6 @@
<h1>{{name}}</h1>
<p>Price: {{price.currency.symbol}}{{price.value}} {{#price.currency}}{{name}}{{/price.currency}}</p>
<p>VAT: {{price.currency.symbol}}{{price.vat}}</p>
{{#in_stock}}
<p>Available Now</p>
{{/in_stock}}
+ 14
- 0
examples/dot_notation.js
Dosyayı Görüntüle
@@ -0,0 +1,14 @@
var dot_notation = {
name: "A Book",
price:{
value: 200,
vat: function() {
return this.value * 0.2;
},
currency: {
symbol: '€',
name: 'Euro'
}
},
in_stock: true
};
+ 4
- 0
examples/dot_notation.txt
Dosyayı Görüntüle
@@ -0,0 +1,4 @@
<h1>A Book</h1>
<p>Price: €200 Euro</p>
<p>VAT: €40</p>
<p>Available Now</p>
Yaz
Önizleme
Yükleniyor…
İptal
Kaydet