registerPlugin - pfaciana/latte-js GitHub Wiki
Latte.prototype.registerPlugin() API method
void Latte.prototype.registerPlugin(type, name, callback)
This method registers functions or methods defined in your script as plugin. It uses the following parameters:
- type defines the type of the plugin. Valid values are "function", "block" or "modifier"
- name defines the name of the plugin.
- callback defines the JavaScript callback function