{{(el)->CODE}}

  • function
can.mustache.helpers.elementCallback  

{{(el) -> CODE}}

Executes an element callback with the inline code on the element.

Parameters

  1. code {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.

<div class="tabs" {{(el) -> el.jquery_tabs()}}></div>