Skip to content

Instantly share code, notes, and snippets.

@rtyler
Created March 18, 2009 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtyler/81384 to your computer and use it in GitHub Desktop.
Save rtyler/81384 to your computer and use it in GitHub Desktop.
####################### base.tmpl #######################
#from Cheetah import Template
#extends Template.Template
#def sidebar()
#end def
#def footer()
#end def
#def header()
#end def
#def canvas()
#end def
$header()
<!-- other markup and such goes here -->
$sidebar()
$canvas()
<!-- other markup and such goes here -->
$footer()
####################### subclass.tmpl #######################
#import base
#extends base.base
#def canvas()
This is my page specific canvas method! With my canvas markup :D
#end def
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment