title: How to pass parameter to kendo template
body: <p>I have this code:</p>
  
  <pre><code>var columns = [];
  
  $.each(actions, function (idx, action) {
      actionColumn = { 
          template: '#if (selfActions[i].name === "' + action.name + '"){ # &lt;input type="checkbox" /&gt; some text   # } # '
      }   
      columns.push(actionColumn);
  });
  
   $("#myId").kendoTreeList({
      //...
      columns: columns
  });
  </code></pre>
  
  <p>And I want to convert to template such as:</p>
  
  <pre><code>&lt;script id="rowLeaveTemplate" type="text/x-kendo-tmpl"&gt;
          if (selfActions[i].name === '???action.name???' ){#
              &lt;input type="checkbox" /&gt;  some text
          # }  # 
  &lt;/script&gt;
  </code></pre>
  
  <p>How can I pass parameter <code>action.name</code> to template to replace <code>'???action.name???'</code></p>