My Python-dev app includes the following in development.ini:

# If you'd like to change the default template engine used to render text/html
# content in decorator style controllers, edit this line.
template_engine.default = genshi

This can easily confuse the majority of users who don't use
decorator-style controllers and may not understand what they are.
It's doubly confusing that Genshi is the default for decorator
controllers while Mako is the default for ordinary controllers.  Not
to mention that Genshi is not a Pylons dependency.

Does it even make sense to set the template engine in the config file?
 It's really a programming choice, not a deployment choice.  Unless
the developer has provided a complete set of redundant templates for
the alternate engine (which nobody will do), the user cannot switch
the default engine without breaking the application.  It's not like
swiching a SQLAlchemy backend.  Changing the template engine requires
programming changes in the application.  So it belongs more in
environment.py than the config file.

-- 
Mike Orr <[EMAIL PROTECTED]>

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

Reply via email to