Helpers API¶
registerHelper¶
Register a helper function that can be called from templates.
Helper Signature¶
Helpers receive (content, context) where content is the rendered inner content of the tag:
Usage in templates:
Built-in Helpers¶
miki-template includes built-in helpers for common formatting tasks:
-
bold— Wrap content in<b>tags -
italic— Wrap content in<i>tags -
underline— Wrap content in<u>tags