Re: [web2py] Oh Noes! template parsing conflict!

2011-07-18 Thread Anthony
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

Re: [web2py] Oh Noes! template parsing conflict!

2011-07-18 Thread Vasile Ermicioi
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%}

[web2py] Oh Noes! template parsing conflict!

2011-07-18 Thread blackthorne
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