{{(el)->CODE}}
can.mustache.helpers.elementCallback
{{(el) -> CODE}}
Executes an element callback with the inline code on the element.
Parameters
-
code
{String}
The inline code to execute on the element.
Executes an element callback with the inline code on the element.
{String}
The inline code to execute on the element.
Use
It is common for you to want to execute some code on a given DOM element. An example would be for initializing a jQuery plugin on the new HTML.