Re: Cheetah's #include base directory

Aahz <[email protected]> Tue, 26 Jan 2010 17:28:18 -0800
Newsgroups gmane.comp.python.cheetah
Organization The Cat & Dragon
Message-ID <[email protected]>
On Tue, Dec 29, 2009, R. Tyler Ballance wrote:
> On Tue, 29 Dec 2009, Pablo Antonio wrote:
>> 
>> Thing is some files have an '#include "<file>"' at the top. They usually
>> include some header with the DOCTYPE and a title and that's pretty much
>> it. Well, the problem is this <file> is being searched in the current
>> directory the app is located, and not in the ./templates/ dir which is
>> where the templates are.
> 
> Personally I don't use the #include directive ever (I find it too much
> like Smarty (read: hacky)).

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.
-- 
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