Re: Cheetah's #include base directory
Aahz <[email protected]> Thu, 28 Jan 2010 16:47:43 -0800
| Newsgroups | gmane.comp.python.cheetah |
|---|---|
| Organization | The Cat & Dragon |
| Message-ID | <[email protected]> |
On Tue, Jan 26, 2010, R. Tyler Ballance wrote: > On Tue, 26 Jan 2010, Aahz wrote: >> >> All right, how do you do create global template elements such as page >> footers? I want to write them in Cheetah rather than Python because >> they're primarily HTML. > > I use inheritance between pre-compiled templates (since it's tricky to do with > dynamic compilation), here's an example: > > base.tmpl: http://github.com/rtyler/urlenco.de/blob/master/Urlencode/views/base.tmpl > index.tmpl: http://github.com/rtyler/urlenco.de/blob/master/Urlencode/views/index.tmpl Ah-ha. Well, since I *do* want dynamic compilation for development, I guess I'm going to need to put in some skill sweat to figure out how to make that work. -- Aahz ([email protected]) <*> http://www.pythoncraft.com/ import antigravity ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com