Thank you very much for the tip Christoph. Hmm things like that should
be documented somewhere


On May 5, 12:08 pm, Christoph Haas <[EMAIL PROTECTED]> wrote:
> On Fri, May 04, 2007 at 12:43:47PM -0700, voltron wrote:
> > I´ll like to use only Mako templates in my projects, apart from
> > stating this in the middleware.py, do I have to change these lines in
> > the einviroment.py:
>
> >  # The following template options are passed to your template engines
> >     tmpl_options = {}
> >     tmpl_options['myghty.log_errors'] = True
> >     tmpl_options['myghty.escapes'] = dict(l=webhelpers.auto_link,
> > s=webhelpers.simple_format)
>
> You can just comment them out. But I suggest you use:
>
> tmpl_options = {}
> tmpl_options['mako.input_encoding'] = 'UTF-8'
> tmpl_options['mako.output_encoding'] = 'UTF-8'
> tmpl_options['mako.default_filters'] = ['decode.utf8']
>
> Otherwise Mako was bitchy about my UTF-8 encoded templates.
>
>  Christoph


--~--~---------~--~----~------------~-------~--~----~
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