You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -223,6 +223,10 @@ By default, the value inserted for a token will be applied as the nodeValue of t
223
223
| forin |`{{ forin:token }}`| Iterates over every property found in the assumed object. See the [object](/example/simple-javascript/object.html) example. |
224
224
| boolean |`{{ boolean:token }}`| Inserts boolean per resolved truthiness of value (e.g. *checked="false"*, *disabled="true"*, *class="true"*). |
225
225
226
+
Modifiers can be applied on top of Transformers:
227
+
```html
228
+
<samp>The national debt is ${{ concat:toLocaleString:debt }}.</samp>
229
+
```
226
230
***
227
231
### Transformers
228
232
Transformers allow for modification of a value prior to insertion into the targeted location. This allows for performing logic on the data without embedding logic into the markup. The transformer function receive two arguments: the value and the index of the current iteration.
@@ -268,7 +272,7 @@ templater.getVersion(); // returns current version, e.g. "2.2.0"
268
272
|-------------|-------------|-------------|
269
273
|`init`|*none*| Returns an instance of the microdata-template. |
270
274
|`render`|*element, data*| Populates the HTML element template with data. |
0 commit comments