jQueryTMPLIF语句向我输出If和ELSE答案

jQueryTMPLIF语句向我输出If和ELSE答案,jquery,if-statement,jquery-templates,Jquery,If Statement,Jquery Templates,我对jquerytmpl中的IF语句有问题。我这样称呼它: $('tmplDialogWindow').tmpl([{title:title,yn'y'}]) 代码看起来是这样的: <script id="tmplDialogWindow" type="text/x-jquery-tmpl"> <h2>${title}</h2> <p>Some cool text that You, {{if yn == 'y'}}

我对jquerytmpl中的IF语句有问题。我这样称呼它:
$('tmplDialogWindow').tmpl([{title:title,yn'y'}])

代码看起来是这样的:

<script id="tmplDialogWindow" type="text/x-jquery-tmpl">  
   <h2>${title}</h2>  
   <p>Some cool text that You, 
   {{if yn == 'y'}}  
      want  
   {{else}}  
      don't want  
   {{/if}}  
   to see.</p>  
   Wpisz tekst lub frazę: <input type='text' name='qText' id='inputetText'>  
</script>

${title}
一些很酷的文字,
{{if yn=='y'}}
希望
{{else}
不想要
{{/if}
要查看。

Wpisz tekst lub frazę:
它会打印出IF和ELSE的答案。怎么了

2011年2月17日编辑:

我正在使用modx框架,它(modx)改变{{sth}}来加载sth块(这是HTML块代码)

我必须找到一种方法将{{}更改为一些不同的标记。

第二部分(带有id=“tmplDialogWindow”)作为HTML代码在PHP文件中。很抱歉没有这么早写,第二部分(id=“tmplDialogWindow”)作为HTML代码在PHP文件中。很抱歉没有早点写信