Using Javascript and Tornado templates together

522 views
Skip to first unread message

wataka

unread,
Feb 25, 2012, 9:05:42 AM2/25/12
to Tornado Web Server
Is there a way to using Tornado and Javascript templates ( Jquerym
Mustache.js, handlerbars.js) together? JS templates and Jinja2 wotk
together this way:

<script type='text/x-jquery-template'>
<div>The people are:
{% raw %}<!-- Everything in here will be left untouched by
Jinja2 -->

{{ each people }}
${$value}
{{ /each }}

{% endraw %}
</div>
</script>


Is there a Tornado equivalent?

Thanks

Андрей Григорьев

unread,
Feb 25, 2012, 10:13:20 AM2/25/12
to python-...@googlegroups.com
<script type='text/x-jquery-template'>
<div>The people are:
{{! each people }}
${$value}
{{! /each }}
</div>
</script>

25.02.2012 18:05, wataka пишет:

--
Andrew

wataka

unread,
Feb 26, 2012, 10:34:54 AM2/26/12
to Tornado Web Server
Thanks!
Reply all
Reply to author
Forward
0 new messages