See [wiki:"CookBook/SiteHtml/Genshi"] for Trac versions older than 1.3.2. See [wiki:"CookBook/SiteHtml/Jinja2"] starting with Trac 1.3.2.