{{include 'leftsidebar.html'}} doesn't work... it just appears my default
sidebar... if I put:
{{def mysidebar():}}
my new sidebar!!!
{{return}}

instead of the include it works...

PS:
{{def mysidebar():}}
my new sidebar!!!
{{return}}
is the content of leftsidebar.html

Regards,

Tito

On Thu, Dec 8, 2011 at 3:20 PM, Vinicius Assef <vinicius...@gmail.com>wrote:

> On Thu, Dec 8, 2011 at 3:14 PM, Tito Garrido <titogarr...@gmail.com>
> wrote:
> > Folks,
> >
> > I need to change my sidebar sometimes so I've created a view
> > leftsidebar.html with a function like this:
> >
> > {{def mysidebar():}}
> > my new sidebar!!!
> > {{return}}
> >
> > And then on may layout.html I've put:
> > {{if 'mysidebar' in globals():}}{{mysidebar()}}{{else:}}
> > ...
> > {{pass}}
> >
> > And on a controller view I've tryed:
> > {{include 'leftsidebar.html'}}
> > {{extend 'layout.html'}}
> > ...
> >
> > This doesn't work... but If I put the content of leftsidebar.html in the
> > controller view it works...
>
> What exactly doesn't work? Your function call, {{include}}?
>
> Do you see any error message?
>



-- 

Linux User #387870
.........____
.... _/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:_______

Reply via email to