wiki:TemplateSearchAddition
Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Note

The information on this page is obsolete, incomplete or incorrect and left here only for reference and has not been ported to the new documentation wiki.

Please refer to the TurboGears documentation wiki for up-to-date documentation.


You want to inherit from a generic toolkit that you are building for all your sites. You could copy the master template to each directory and copy it around every time you change it. The

Top of KID Template

<?python
import dirname.dirname.kidfile
?>

Change extends to:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#" py:extends="dirname.dirname.kidfile">


The Kidfile does not have a .kid extension.

The directory that the template is in must have a __init__.py file. There does not need to be anything in this file.