Changes between Version 11 and Version 12 of GenshiRecipes/PylonsWithGenshi
- Timestamp:
- Jul 19, 2007, 4:47:08 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GenshiRecipes/PylonsWithGenshi
v11 v12 1 1 = [GenshiRecipes Genshi Recipes]: Using Genshi with Pylons = 2 3 In Pylons 0.9.6rc1, you just need to replace `template_engine='mako'` with `template_engine='genshi'` in `config/environment.py`. 2 4 3 5 Apparently as of Pylons 0.9.5, if you have genshi installed you may invoke genshi templates just by using `render_response("genshi","<templatename>")`. The instructions below are helpful for making genshi the "default" templates. 4 6 5 To use Genshi with [http://pylonshq.com/ Pylons] you need to make some aditional steps, which is what's going to be explained here. See also the [http://docs.pythonweb.org/display/pylonscookbook/Genshi+templates Pylons Cookbook variant]7 To use Genshi with [http://pylonshq.com/ Pylons] 0.9.4 and below, you need to take some additional steps, which is what's going to be explained here. See also the [http://docs.pythonweb.org/display/pylonscookbook/Genshi+templates Pylons Cookbook variant] 6 8 7 9 == Adding Genshi Template Engine == 8 First you need some changes in your application's '''`middleware.py`'''. For at least version 0.9.6rc1, these lines are in '''`environment.py`'''.10 First you need some changes in your application's '''`middleware.py`'''. 9 11 10 12 === Genshi only ===