wiki:EggCookingTutorial

How to cook eggs for Trac

This page is out-of-date since it uses ClearSilver templates. Trac 1.4 and later use Jinja2 templates.

Description

Trac's functionality can be extended using plugins. Moreover, you can even deploy plugins as Python eggs.

This four 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:

Read the tutorials in order. If you run into difficulties editing files, you can download the complete example as a tarball at the end of each step.

Trac 0.11 uses Genshi as the template engine. Use the EggCookingTutorialTrac0.11 tutorial if you want to cook an egg for Trac 0.11. A similar structure has been used there, so that it is easy to follow for those who cooked eggs for earlier versions.

Author/Contributors

Author: rede
Contributors: khundeen

Last modified 4 years ago Last modified on May 7, 2020, 12:39:56 AM