registerSimpleHelper
can.mustache.registerSimpleHelper
Register a simple helper.
Mustache.registerSimpleHelper(name, helper)
Parameters
-
name
{String}
The name of the helper.
-
helper
{can.mustache.simplehelper}
The simple helper function.
Registers a helper with the Mustache system that passes the values instead of computes as arguments. This is useful if your helper does not modify the argument computes and you only need the actual values. Pass the name of the helper followed by the function to which Mustache should invoke. These are run at runtime.