I’m implementing a web app using web2py and jQuery. I want to use the jquery template plugin but the plugin uses the same notation for templates as web2py; {{ jQuery code }} and collides with web2py templates.
Is there any way I can disable web2py templates or escape the {{ and }} parts?
You can disable web2py templating my simply haing the controller functions return a string instead. You may also want to consider this option: in jquery-tmpl.js you can replace
with
and use
{%...%}in place of{{...}}so no more conflict with web2py syntax. Similarly we have add an option to web2py to switch syntax there. If this is critical bring it up on the web2py mailing list.