소스 검색

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>


불러오는 중...
취소
저장