Re: Smarty-like #include?

[email protected]
Newsgroups gmane.comp.python.cheetah
Message-ID <[email protected]>
does mako or other templating languages do mixins?
On 5/26/09, Mike Orr <[email protected]> wrote:
> > The proper way is with #def.   You can put all your snippets in one
>  > template of #def's and #extends it, or have a hierarchy of superclass
>  > templates as mixins.
>
>
>
> On Mon, May 25, 2009 at 1:14 AM,  <[email protected]> wrote:
>  >
>  > Can you tell how to have a hierarchy of superclass templates as mixins in
>  > Cheetah?
>
>  They are not mixins but a linear hieararchy.  Cheetah does not support
>  mixins (=multiple inheritance) for templates.
>
>  Library1 template:   no #extends
>  Library2 template:   #extends Library1
>  Library3 template:   #extends Library2
>  Site template:         #extends Library3
>  page template:       #extends SiteTemplate
>
>
>  --
>  Mike Orr <[email protected]>
>


-- 
Bidegg worlds best auction site
http://bidegg.com

oes mako or other tem

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.