That only helps for everything that is inside ${} blocks, but not for
the static part of the javascript file .  The latter part is still
html-escaped,

On 11 nov, 09:14, Eric Ongerth <[email protected]> wrote:
> Check the mako docs 
> here:http://www.makotemplates.org/docs/filtering.html#filtering_expression...
> ... and also the full "filtering" section above that subsection.
>
> On Nov 11, 12:01 am, cropr <[email protected]> wrote:
>
> > I am trying to dynamically modify  javascript files using
> > mako_templates.
> > Because the output is not html but javascript, there should not be any
> > html-escaping in the output.  Is there a way to disable the html-
> > escaping in Pylons, while keeping the caching system intact.
>
> > Currently I do something like render('javascriptfile.js').unescape(),
> > but it cannot be the intention to escape and immediately to unescape
> > just wasting CPU cycles?

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to