Changes between Version 7 and Version 8 of EggCookingTutorial/AdvancedEggCooking


Ignore:
Timestamp:
Dec 30, 2005 8:26:49 AM (9 years ago)
Author:
anonymous
Comment:

Fix some of the english.

Legend:

Unmodified
Added
Removed
Modified
  • EggCookingTutorial/AdvancedEggCooking

    v7 v8  
    77== Adding template == 
    88 
    9 To have a template we need directory and of course template itself. We will keep same simple "Hello world!" text in visible, but this time we will integrate our fine words in Trac layout. 
     9To have a template we need a directory and of course the template itself. We will keep the same simple "Hello world!" text, but this time we will integrate our fine words into a Trac layout. 
    1010 
    1111For that we need to create one additional directory: 
     
    1414}}} 
    1515 
    16 In that directory create new file ''helloworld.cs'': 
     16In that directory create a new file ''helloworld.cs'': 
    1717{{{ 
    1818#!text/html 
     
    2727}}} 
    2828 
    29 Now you have created template for plugin.  
     29Now you have created the template for the plugin.  
    3030 
    3131== Tell Trac where template is == 
    3232 
    33 Trac doesn't know where your template is so you have to tell it. This is done by adding ITemplateProvider method in ''helloworld.py''. 
     33Trac doesn't know where your template is so you have to tell it. This is done by implementing the ITemplateProvider interface in ''helloworld.py''. 
    3434 
    3535So you change few lines as following: 
     
    116116== Copy template to egg == 
    117117 
    118 Finally you have to include new template directory in egg. 
     118Finally you have to include the new template directory in an egg. 
    119119 
    120120So change ''setup.py'' to be like: 
     
    132132== Building and deploying == 
    133133 
    134 Building and deployment goes exactly same way as it was in previous tutorial [wiki:EggCookingTutorial/BasicEggCooking#Firstdeployment EggCookingTutorial/BasicEggCooking]. 
     134Building and deployment goes exactly the same as it did in the previous tutorial [wiki:EggCookingTutorial/BasicEggCooking#Firstdeployment EggCookingTutorial/BasicEggCooking]. 
    135135 
    136 Now you should see big "Hello world!" text integrated in Trac layout when you press that fancy button in main navigation bar. 
     136Now you should see a big "Hello world!" integrated into your Trac layout when you press that fancy button in the main navigation bar. 
    137137 
    138138== Aftermath == 
    139139 
    140 Now you have added basic template for your plugin let's add final twist, put some static content like own stylesheet and one image. Continue to [wiki:EggCookingTutorial/AdvancedEggCooking2 EggCookingTutorial/AdvancedEggCooking2] 
     140Now that you have added a basic template for your plugin let's add the final twist, putting some static content like a stylesheet and an image. Continue to [wiki:EggCookingTutorial/AdvancedEggCooking2 EggCookingTutorial/AdvancedEggCooking2] 
    141141 
    142142