http://www.mail-archive.com/[email protected]/msg47106.html

<http://www.mail-archive.com/[email protected]/msg47106.html>I read
this thread can't figure out I to do it.

In {{extend layout}}
layout is a variable or a function?

Richard

On Wed, Nov 24, 2010 at 5:32 PM, mdipierro <[email protected]> wrote:

> Extend is hanndled by the preprocessor before the if is executed.
>
> You can do
>
> {{extend layout}}
>
> and set the layout variable in the controller. This will not work if
> you bytecode compile it.
>
> On Nov 24, 4:31 pm, Richard Vézina <[email protected]>
> wrote:
> > {{if request.args(0)=='login':}}
> > {{=P(0)}}
> > {{extend 'login_layout.html'}}
> > {{else:}}
> > {{=P(1)}}
> > {{extend 'layout.html'}}
> > {{pass}}
> >
> > {{=form}}
> >
> > It always take the second layout...
> >
> > Richard
> >
> > On Wed, Nov 24, 2010 at 5:25 PM, Albert Abril <[email protected]
> >wrote:
> >
> > > Or  using auth.login() in your controller/view instead of auth().
> >
> > > On Wed, Nov 24, 2010 at 10:41 PM, Richard Vézina <
> > > [email protected]> wrote:
> >
> > >> Hello,
> >
> > >> Is there a way to have a particular layout for default/user/login that
> > >> will not affect ddefault/user/not_authorized for example?
> >
> > >> I try by adding a login.html in view without success.
> >
> > >> Thanks
> >
> > >> Richard
> >
> >
>

Reply via email to