Changes between Version 11 and Version 12 of EggCookingTutorialTrac0.11


Ignore:
Timestamp:
Oct 29, 2008, 3:59:42 PM (15 years ago)
Author:
tjyang
Comment:

classify the examples as hello world 1-3.

Legend:

Unmodified
Added
Removed
Modified
  • EggCookingTutorialTrac0.11

    v11 v12  
    11[[TOC(EggCookingTutorialTrac0.11)]]
    22
    3 = Basic Egg cooking =
     3= Basic Egg cooking (Hello World 1) =
    44
    55Since Trac 0.11, Genshi is used as the new template engine.  Some APIs have also been changed.
     
    114114Now you have successfully created your first egg. You can continue further to learn how to use templates in your plugins, and make its output look like other Trac pages.
    115115
    116 = Cook even better eggs =
     116= Cook even better eggs (Hello World 2) =
    117117
    118118After you read [wiki:EggCookingTutorialTrac0.11#BasicEggcooking Basic Egg Cooking] and created your first egg, it's time to make it a bit better.
     
    278278Now 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 next section to cook high-end egg.
    279279
    280 = Cooking high-end eggs =
     280= Cooking high-end eggs (Hello World 3) =
    281281
    282282Now you have pretty neat plugin already but let's add final twist and serve some static content like stylesheet and image.
     
    285285
    286286First step is to ensure that your ''trac.ini'' doesn't have ''htdocs_location'' set otherwise Trac can't serve static data.
    287 
     287== Directory Listing for Hello World 3 ==
     288{{{
     289helloworld3-plugin
     290|-- helloworld
     291|   |-- __init__.py
     292|   |-- helloworld.py
     293|   |-- htdocs
     294|   |   |-- css
     295|   |   |   `-- helloworld.css
     296|   |   `-- images
     297|   |       `-- HobbitmonTracPlugin.png
     298|   `-- templates
     299|       `-- helloworld.html
     300`-- setup.py
     301
     3025 directories, 6 files
     303
     304}}}
    288305== More directories ==
    289306
     
    476493Now you should be familiar with both, so make an egg and deploy it.
    477494
     495
     496
    478497Click and see... Hello world! with your pretty own image.
    479498