Ins: functions

Back to Ins homepage

prev next

Functions in template system are meant to format the output data. The data should be prepared in previous step by API. In Ins, formatting functions can be applied only to elements containing text value (no nested elements) and accepts only one argument: the node value. If you need more arguments, use a bit of curry.
<div ins-function="strtoupper">
  abc
</div>

Result

ABC