summaryrefslogtreecommitdiff
path: root/recipes/content/Basic_Inheritance.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/content/Basic_Inheritance.markdown')
-rw-r--r--recipes/content/Basic_Inheritance.markdown16
1 files changed, 9 insertions, 7 deletions
diff --git a/recipes/content/Basic_Inheritance.markdown b/recipes/content/Basic_Inheritance.markdown
index 94ba5e8..15b53ac 100644
--- a/recipes/content/Basic_Inheritance.markdown
+++ b/recipes/content/Basic_Inheritance.markdown
@@ -33,10 +33,12 @@ Whether or not you are aware of it, Cheetah templates are always inheriting from
a Python class by default. Unless otherwise denoted, Cheetah templates are compiled
to Python classes that subclass from the Cheetah.Template.Template class.
- import Cheetah.Template
-
- class CookbookTemplate(Cheetah.Template.Template):
- _page = 'Cookbook'
- author = 'R. Tyler Ballance'
- def pageName(self):
- retutn self._page or 'Unknown'
+#highlight
+import Cheetah.Template
+
+class CookbookTemplate(Cheetah.Template.Template):
+ _page = 'Cookbook'
+ author = 'R. Tyler Ballance'
+ def pageName(self):
+ return self._page or 'Unknown'
+#end highlight