Version 12 (modified by 15 years ago) (diff) | ,
---|
Egg Cooking Tutorial
How to cook eggs for Trac
Description
Since Trac 0.9 it has been possible to write plugins for Trac to extend Trac functionality. Even better, you can deploy plugins as Python eggs that really makes plugin development fun.
This three step tutorial shows how to make an egg, successfully load an egg in Trac and in advanced topics how to serve templates and static content from an egg.
- Step 1: Basic cooking
- Step 2: Advanced cooking 1
- Step 3: Advanced cooking 2
- Step 4: publish
I suggest that you read steps in order. If you run in difficulties to editing files you can download complete example as tarball at the end of each step.
Trac 0.11 uses Genshi as the new template engine. Use EggCookingTutorialTrac0.11 tutorial if you want to cook egg for Trac 0.11. I try to maintain similar structure that rede has so that it is easy for those who cooked eggs for earlier versions.