I'm not sure you can pass 'delimiters' to response.render() -- you might
have to follow this method:
https://groups.google.com/d/topic/web2py/4IFFE-7vq1I/discussion.
Anthony
On Monday, July 18, 2011 9:29:01 PM UTC-4, elffikk wrote:
> you can change template delimiters
>
> in controller
> def
you can change template delimiters
in controller
def myf():
return response.render('myf.html', delimiters=('{%','%}'))
now you can use python code in myf.html
{%if True:%}It works! {%pass%}
While editing a javascript code to adapt the behavior of an addthis
button I got something unexpected...
Checkout this JS code and thing about web2py template code:
var addthis_share = {
templates: { twitter: 'check out {{title}} @ {{url}}' }
}
First try:
templ
3 matches
Mail list logo