On Wed, Jun 11, 2008 at 6:36 PM, Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
>
> interesting decision on the change.
>
> In a Perl framework I once built, we approached this a little
> differently
> 1. a var was set on app startup to set the render function's default
> behavior
> 2. the render() function took a keyword argument to dispatch to
> another function
>
> that worked really well for us.
>
> it was my understanding that Buffet did essentially the same thing ?
Dispatch to another function via a keyword argument? I'm not sure
what that means. Buffet is structured as plugin classes. You pass an
engine name to config.init_app() or PylonsApp() (I forget which), and
it looks up the plugin class via entry point. You can also configure
multiple engines. The render function takes an engine name or uses
the default engine, and invokes the corresponding plugin.
render_mako looks like this:
def render_mako(template_name, cache_key=None, cache_type=None,
cache_expire=None)
So the only extra args you can pass are cache-related.
--
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
-~----------~----~----~----~------~----~------~--~---