Edgewall Software

Changes between Version 17 and Version 18 of GenshiTutorial


Ignore:
Timestamp:
Aug 29, 2007, 5:27:56 PM (17 years ago)
Author:
michael@…
Comment:

Fixed typo: "genshi" > "geddit". Cleaned up previous edit a bit.

Legend:

Unmodified
Added
Removed
Modified
  • GenshiTutorial

    v17 v18  
    3232 1. Create a directory that should contain the application
    3333 1. Inside that directory create a Python package named geddit by doing the following:
    34   * Create a {{{geddit}}} directory
    35   * Create an empty file called {{{__init__.py}}} inside the {{{geddit}}} directory
    36  1. Inside that package, create a file called {{{controller.py}}} with the following content:
     34  * Create a `geddit` directory
     35  * Create an empty file called `__init__.py` inside the `geddit` directory
     36 1. Inside that package, create a file called `controller.py` with the following content:
    3737
    3838{{{
     
    141141This is basically an almost static HTML file with some simple variable substitution.
    142142
    143 We now need to change the controller code so that this template is used. First, add the Genshi `TemplateLoader` to the imports at the top of the `genshi/controller.py` file, and instantiate a loader for the `geddit/templates` directory:
     143We now need to change the controller code so that this template is used. First, add the Genshi `TemplateLoader` to the imports at the top of the `geddit/controller.py` file, and instantiate a loader for the `geddit/templates` directory:
    144144
    145145{{{