registerHelper
can.mustache.registerHelper
Register a helper.
Mustache.registerHelper(name, helper)
Parameters
-
name
{String}The name of the helper.
-
helper
{can.mustache.helper(arg..., options)}The helper function.
Register a helper.
{String}The name of the helper.
{can.mustache.helper(arg..., options)}The helper function.
Registers a helper with the Mustache system. Pass the name of the helper followed by the function to which Mustache should invoke. These are run at runtime.