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?

Reply via email to