On Tue, Jun 10, 2008 at 5:36 PM, Jose Galvez <[EMAIL PROTECTED]> wrote: > I've not kept up with the proposed timelines and stuff for pylons, but since > this was brought up here, once buffet is gone, whats in the works to replace > it? will render() be changed to something else?
Sorry, I forget that not everybody follows Pylons' development version. A simple, straightforward render_mako() function has replaced it, along with render_genshi() and render_jinja(). You just import your preferred one as render() in the controller. If you need to set some template options the function doesn't support, or if you're using another template engine, you simply write your own function following the examples. The function just pulls the template directory from the config, calls a Pylons function to insert the Pylons globals into the template data dict, and uses native template engine calls to render the template. In Mako's case, load_environment() also puts a template lookup object into pylons.g for render_mako to use. http://wiki.pylonshq.com/pages/viewpage.action?pageId=11174779 What's new in Pylons 0.9.7 http://docs.pylonshq.com/views.html Pylons 0.9.7's templating documentation -- Mike Orr <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
