I got the diiffs HTML encoding
Using {{html fieldNameOrExpression}} is equivalent to using ${fieldNameOrExpression}, except that it renders unencoded text into the HTML DOM, whereas ${} encodes values by default. On Fri, Jul 22, 2011 at 4:56 AM, Bruno Rocha <rochacbr...@gmail.com> wrote: > I am using Jquery templates for PowerGrid[0] and I have no problem. > > > example: > <script id="template" type="text/x-jquery-tmpl"> > <div> > <div>${name}</div> > <div>${email}</div> > > <div class="gridy-button"> > <a href="#">edit</a> > </div> > </div> > </script> > > Look it working: http://labs.blouweb.com/PowerGrid/default/index > > On Fri, Jul 22, 2011 at 4:35 AM, guruyaya <guruy...@gmail.com> wrote: > >> I am trying to start using jQuery templates on something, but it >> creates a problem. >> jQuery templates use the {{ }} syntax to do a lot of tasks. Web2py >> too. I can use another delimiter on web2py, but that will force me to >> change the syntax for all my templates, because the template I'm >> working with, extends the main theme. Which means I can either change >> the main theme, web2py_ajax and so on, to use {% %} and make all the >> other templates in the project conform to it, or find a way to make >> jQuery template change it's delimiter. I tried writing the template >> code inside an XML tag: >> XML(""" >> {{YAYA}} >> """) >> >> , but it gives me this exception: >> . >> . >> . >> File "/home/guruyaya/sat/web2py/applications/locwall/views/default/ >> index.html", line 105 >> response.write(XML(''' >> {{YAYA) >> response.write("\n''')}}\n", escape=False) >> >> >> ^ >> SyntaxError: invalid syntax >> >> >> Is there any other way I can do that? >> Thanks in advance >> YAYA > > > > > -- > > > > -- > Bruno Rocha > [ About me: http://zerp.ly/rochacbruno ] > [ Aprenda a programar: http://CursoDePython.com.br ] > [ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ] > [ Consultoria em desenvolvimento web: http://www.blouweb.com ] >