You can do it individually for certain variables instead of globally
as in:
{% raw foo_variable %} instead of {{ foo_variable }}
On Feb 12, 4:03 am, Anderson Cardoso <
apierre.card...@gmail.com>
wrote:
> this would go on the top of you html and it would change the behavior of
> the whole template.
> If you want a one time only method you can use the
> tornado.escape.xhtml_unescape() (there is a xhtml_escape() either)
http://www.tornadoweb.org/documentation/escape.html
>
> pass it to your template, like:
> self.render('my_template.html, some_html_data=data,
> unescape=tornado.espace.xhtml_unescape) #this in your handler
>
> on the template:
> {{ unescape( some_html_data) }}
>
> I have not tried, but I think it should work
> att
>
> Anderson
>
> OBS: I dont know if this is the better way, but I always use the template
> with {% autoescape none %} , and when I want something escaped (like user
> entries or so) I use xhtml_escape method. It works well.
>
> 2012/2/12 Nhomar Hernández <
nho...@openerp.com.ve>
>
>
>
>
>
>
>
>
>
> > Thanks anderson
>
> > Where do i put this at the end of the .html file?
>
> > Can i use it just one time in some place?
>
> > I have home base and.... my news files where is the correct place?
>
> > Im pretty new with template management systems ;-)
>
> > But i will try! and inform all.
>
> > 2012/2/11 Anderson Cardoso <
apierre.card...@gmail.com>
>
> >> If I'm not wrong now the templates are escaped automatically.
> >> If you want to remove this behavior you can do:
> >> {% autoescape None %}
>
> >> 2012/2/11 Nhomar Hernández <
nho...@openerp.com.ve>
>
> >>> Hello.
>
> >>> I'm facing exactly the same problem.
>
> >>> But in my case using just a module.
>
> >>> It means:
>
> >>> I made a copy from blog demo.
>
> >>> and it works... to deploy several modules/entry.html in several places...
>
> >>> BUt in my architecture it is not working, Just base template works the
> >>> "modules" doesn't
>
> >>> What somebody think is happening?
>
> >>> Regards-
>
> >>> 2011/10/29 deepu <
deepu.kalidi...@gmail.com>
> >> [gtalk]:
apierre.card...@gmail.com
> [gtalk]:
apierre.card...@gmail.com