Kaynağa Gözat

Merge branch 'master' of git@github.com:janl/mustache.js

* 'master' of git@github.com:janl/mustache.js:
  Damnit Janet.
tags/0.2.3
Jan Lehnardt 16 yıl önce
ebeveyn
işleme
44f28016e2
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. +2
    -2
      README.md

+ 2
- 2
README.md Dosyayı Görüntüle

@@ -62,7 +62,7 @@ Enumerable Sections use the same syntax as condition sections do. `{{#shopping_i




### View Partials ### View Partials
mustache.js supports a quite powerful but yet simple view partial mechanism. Use the following syntax for partials: `{{<partial_name}}`
mustache.js supports a quite powerful but yet simple view partial mechanism. Use the following syntax for partials: `{{>partial_name}}`


var view = { var view = {
name: "Joe", name: "Joe",
@@ -82,7 +82,7 @@ mustache.js supports a quite powerful but yet simple view partial mechanism. Use
output will be: output will be:
Welcome, Joe! You just won $1000 (which is $600 after tax) Welcome, Joe! You just won $1000 (which is $600 after tax)


You invoke a partial with `{{<winnings}}`. Invoking the partial `winnings` will tell
You invoke a partial with `{{>winnings}}`. Invoking the partial `winnings` will tell
mustache.js to look for a object in the context's property `winnings`. It will then mustache.js to look for a object in the context's property `winnings`. It will then
use that object as the context for the template found in `partials` for `winnings`. use that object as the context for the template found in `partials` for `winnings`.




Yükleniyor…
İptal
Kaydet