http://jsfiddle.net/kfEfw/115/のよう に sth を実行したいのですが、 kendo.template( .... ) で変数の値を確認したいと思います。特定の例では、 x 変数を認識しません。テンプレートに x を渡す方法があるかどうかを知りたいです。
var temp = 0; //i want to pass this variable in the template and check it's value
/if temp = 0 I need to render sth and if temp has other value I want to render sth else
window.kendouiTemplate = kendo.template("<div><h1 class='header'><#= data.header#></h1><ul
class='list'><# for (var i = 0, l = data.list.length; i < l; i++) {
#><#if(data.list[i]%2==0){#><li class='item'><#= data.list[i] #></li><#}#><# } #></ul>
</div>", {useWithBlock:false});
前もってありがとう、アルテミス