well a few things i'd suggest from previous exploits in other
languages ( btw, have you looked into pylons.templating ? )

- have render take a format argument to override
- instead of pulling off the config, why not just read the file
extension ?  pretty much every templating engine has claimed their own
extension, and stopped using .tmpl or .html ; the only one i can think
of that doesn't follow that mentality is tal, which has multiple
render implementations.

- and from personal preference, i'd  rename render to render__mako
render__genshi .  i'd use two underscores, so one underscore is
available for non engine defs

so...

render('file.mako')

would realize its a mako file by noticing the .mako
if i wanted to override, i could do

render('file.mako', engine=genshi)
or
global_reder_override('genshi')
render('file.mako')

and then render would wrap render__genshi and render__mako -- and all
the render functions are nice and alphabetical in a row
--~--~---------~--~----~------------~-------~--~----~
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