registerSimpleHelper
Register a helper that gets passed values.
Deprecated 4.0
Deprecated in favor of addHelper.
stache.registerSimpleHelper(name, helper)
Registers a helper with stache that always returns the arguments value (instead of a compute). Pass the name of the helper followed by the function to which Mustache should invoke.
See Helpers for more details on using helpers and registerHelper to get computes for observable values.
stache.registerSimpleHelper("upper", function(str){
return str.toUpperCase();
});
See Helpers for more details on using helpers.
Parameters
- name
{String}
:The name of the helper.
- helper
{simpleHelper(arg..., options)}
:The helper function.