Typedef
Static Public Summary | ||
public |
|
|
public |
|
Static Public
public BUILT_IN_TAGS: Object source
Example:
idomizer.compile(`<tpl-logger level="info" content="data.foo: {{data.foo}}" />`);
idomizer.compile(`
<tpl-each items="data.values" item="value" index="i">
<li tpl-key="value-{{i}}">
<tpl-text value="{{value}}"/>
</li>
</tpl-each>
`);
let anotherRenderFunction = // antoher IncrementalDOM render function
idomizer.compile(`
<tpl-call name="anotherRender"/>
`)(IncrementalDOM, {
anotherRender: anotherRenderFunction
});
public OPTIONS: Object source
Properties:
Name | Type | Attribute | Description |
pretty | boolean | Append a end of line character ('\n' ) after each statements. |
|
evaluation | RegExp |
|
A RegExp to extracts expressions to evaluate. |
attributeKey | string |
|
The value of the IncrementalDOM's key. |
attributePlaceholder | string |
|
The flag to make the element acting as a placeholder. |
varDataName | string |
|
The name of the variable exposing the data. |
varHelpersName | string |
|
The name of the variable exposing the helpers. |
selfClosingElements | Array<string> |
|
The list of self closing elements. (http://www.w3.org/TR/html5/syntax.html#void-elements) |
tags | BUILT_IN_TAGS |
|
The built in and custom tags. |