On 13-Oct-07, at 10:29 PM, Sam wrote:
>
> Hi Ryan,
>
> I've been using mako recently for its feature set and caching
> abilities so wanted to integrate it into the new web.py v0.3. This is
> what I came up with based on Anands example. It's fairly well tested
> against the latest webpy.dev branch.
>
> Add to the bottom of web/template.py (or refactor to your pleasing):
No need to refactor. 0.3 will support interface to various templating
engines.
It have added a version, supporting cheetah, genshi and mako.
If you have any other favorite templating engine, please let me know,
preferably with a patch to support that.
The interface will look very similar to web.py templating system.
Some examples:
render = web.contrib.template.render_mako(directories=
['templates'])
render = web.contrib.template.render_genshi(['templates/'])
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---