On Mar 13, 2007, at 11:10 PM, Techniq wrote:
>
> On Mar 13, 5:11 pm, "Techniq" <[EMAIL PROTECTED]> wrote:
>> I'm having XHTML validation issues using Genshi through Pylons.
>> Anyone else experiencing this? It appears that certain XHTML
>> specific
>> tags like '<br />' are being converted to '<br>', thus invalid. I
>> can't tell if this is genshi or pylons so just checking if anyone has
>> seen this.
>>
>> Thanks
>
> After some responses to from the Genshi ML I realize I need to know
> where the serialization method for Genshi is defined?
The following works for me:
In config/middleware.py
# Setup Genshi(only) Template Engine
config.template_engines = []
genshi_options = dict(
(k,v) for k,v in global_conf.iteritems() if k.startswith
('genshi')
)
genshi_options.update(
(k,v) for k,v in app_conf.iteritems() if k.startswith('genshi')
)
config.add_template_engine(
'genshi', 'myapp.templates', genshi_options
)
And in the config. file:
genshi.default_doctype = xhtml
genshi.default_format = xhtml
HTH,
Alberto
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---