Statements and functions - pfaciana/latte-js GitHub Wiki
Latte supports most of the Smarty built-in functions. You cannot create your own custom plugins with the same name; and you should not need to modify the built-in functions.
see also PHP Smarty built-in functions