Changes between Version 11 and Version 12 of EggCookingTutorialTrac0.11
- Timestamp:
- Oct 29, 2008, 3:59:42 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
EggCookingTutorialTrac0.11
v11 v12 1 1 [[TOC(EggCookingTutorialTrac0.11)]] 2 2 3 = Basic Egg cooking =3 = Basic Egg cooking (Hello World 1) = 4 4 5 5 Since Trac 0.11, Genshi is used as the new template engine. Some APIs have also been changed. … … 114 114 Now 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. 115 115 116 = Cook even better eggs =116 = Cook even better eggs (Hello World 2) = 117 117 118 118 After you read [wiki:EggCookingTutorialTrac0.11#BasicEggcooking Basic Egg Cooking] and created your first egg, it's time to make it a bit better. … … 278 278 Now 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. 279 279 280 = Cooking high-end eggs =280 = Cooking high-end eggs (Hello World 3) = 281 281 282 282 Now you have pretty neat plugin already but let's add final twist and serve some static content like stylesheet and image. … … 285 285 286 286 First 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 {{{ 289 helloworld3-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 302 5 directories, 6 files 303 304 }}} 288 305 == More directories == 289 306 … … 476 493 Now you should be familiar with both, so make an egg and deploy it. 477 494 495 496 478 497 Click and see... Hello world! with your pretty own image. 479 498