diff --git a/source/_api/_docs/syntax.md b/source/_api/_docs/syntax.md index bd257c0..66eddb1 100644 --- a/source/_api/_docs/syntax.md +++ b/source/_api/_docs/syntax.md @@ -631,6 +631,24 @@ component.$inject(document.body); ``` +```js +var component = new Regular({ + template: + "{#list items as item}\ + {item_key}:{item}\ + {/list}", + data: { + items: { + a: 'a-1', + b: 'b-2', + c: 'c-3' + } + } +}) + +component.$inject(document.body); +``` + __resulting html__ ```html