Basic use of #extends

Chris Stoyles <[email protected]> Wed, 24 Mar 2010 14:12:37 +0800
Newsgroups gmane.comp.python.cheetah
Message-ID <[email protected]>
Hi Everyone,

I am trying to do something which I think should be fairly trivial, but am
yet to work out how to do it in Cheetah. I want a base template for my site
(base.html) with a block in it (#block main_content) which I can fill-out or
override in another template.

In Django I would include the following statement at the top of my other
template:
{extends "/var/www/my/app/templates/base.html"}

Then to fill in one of the blocks defined in base.html I would just do this:
{% block main_content %}
...html...
{% endblock %}

I've tried my best to understand this page:
http://www.cheetahtemplate.org/docs/users_guide_html_multipage/inheritanceEtc.extends.html
but
with no luck.

Hopefully someone out there can quickly explain to me how I should go about
this.

Thanks,
Chris.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
Cheetahtemplate-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss