Improvement
Updated
- Added #split to RAW templating engine
- Used like the
{{#each}}
block but useful for splitting text variables - Usage:
{{#split myvariable by=","}} {{this}} {{/split}}
- Used like the
- Added #split-properties to RAW templating engine
- Splits strings into an object where each item is an indexed property
- Usage:
{{#split-properties myvariable by=","}} {{i0}} and {{i1}} {{/split-properties}}
More helpers are coming, the RAW templating engine has a lot of usage and so we're going to be improving it more and more 😎