Edgewall Software

Changes between Version 11 and Version 12 of GenshiRecipes/PylonsWithGenshi


Ignore:
Timestamp:
Jul 19, 2007, 4:47:08 AM (17 years ago)
Author:
mindlace
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GenshiRecipes/PylonsWithGenshi

    v11 v12  
    11= [GenshiRecipes Genshi Recipes]: Using Genshi with Pylons =
     2
     3In Pylons 0.9.6rc1, you just need to replace `template_engine='mako'` with `template_engine='genshi'` in `config/environment.py`.
    24
    35Apparently 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.
    46
    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]
     7To 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]
    68
    79== 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`'''.
     10First you need some changes in your application's '''`middleware.py`'''.
    911
    1012=== Genshi only ===