Ben Bangert wrote: > We've talked about Buffet replacements before, but I've talked with a > few people now about going a different route. Making it so easy to write > your own 'render' function, that Buffet and such wouldn't even be > necessary.
I would prefer a pattern like: # in, maybe, helpers.py or something... from something import MakoRenderer render = MakoRenderer( base_path=os.path.join(os.path.dirname(__file__), 'templates'), ... whatever other options you might set ...) Then you have a clear place to do app-wide configuration (stuff like whether you are using autoquoting). MakoRenderer would have a __call__ method with the appropriate signature. The lines of code wouldn't increase significantly, as it would reduce the size of wsgiapp by about the same amount. Ian --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---