Z
Z
ZuBB2011-04-07 22:24:29
JavaScript
ZuBB, 2011-04-07 22:24:29

Evening dumb with jquery template. each and tmpl don't want to "be" together?

{{each(ii, suite) suites}}<br/>
 ${$.tmpl('#addTest2SuiteSuiteItemTemplate',{suite: suite})}<br/>
{{/each}}<br/>


I get the error 'missing } after property list'

{{each(ii, suite) suites}}<br/>
 {{tmpl(${suite}) '#addTest2SuiteSuiteItemTemplate'}}<br/>
{{/each}}<br/>


no error, but the output is the following text on the page

{{tmpl([object Object]) '#addTest2SuiteSuiteItemTemplate'}}
{{tmpl([object Object]) '#addTest2SuiteSuiteSuiteItemTemplate'}}

Where is my mistake?

ps: how to make indent in code?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
ertaquo, 2011-04-07
@ertaquo

Maybe so?
{{each(ii, suite) suites}}
{{tmpl(suite) "#addTest2SuiteSuiteItemTemplate"}}
{{/each}}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question