Преглед изворни кода

fixed enumerable example that uses implicit-iterator to declare pragma for it

parser-rewrite
nathan@stravinsky.local пре 16 година
родитељ
комит
2d9a082b61
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      README.md

+ 1
- 1
README.md Прегледај датотеку

@@ -82,7 +82,7 @@ the items. Use `{{.}}` to access the current item inside the enumeration section
var view = {name: "Joe's shopping card",
items: ["bananas", "apples"]}

var template = "{{name}}: <ul> {{#items}}<li>{{.}}</li>{{/items}} </ul>"
var template = "{{%IMPLICIT-ITERATOR}}{{name}}: <ul> {{#items}}<li>{{.}}</li>{{/items}} </ul>"

Outputs:
Joe's shopping card: <ul><li>bananas</li><li>apples</li></ul>


Loading…
Откажи
Сачувај