For Cheetah3, there is a very rough documentation of the inheritance feature: http://cheetahtemplate.org/users_guide/inheritanceEtc.html#extends
But I don't get how to make it actually work.
Let's assume I have two template files:
A.tmpl
#def message
Hello Cheetah
#end def
This is an example: $message
B.tmpl
#extends A
#def message
Hello Cheetah with Inheritance
#end def
and a simple driver program such as:
from Cheetah.Template import Template
t = Template(file='B.tmpl')
print t
Obviously, that doesn't work, because there is no class A when executing this code.
But how does it go? Or is inheritance only possible with precompiled Cheetah templates?