registerHelper

  • function
can.stache.registerHelper  

Register a helper.

can.stache.registerHelper(name, helper)

Parameters

  1. name {String}

    The name of the helper.

  2. helper {can.stache.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.