I didn't know that you can't bytecode compile with your own layout.
Isn't it a limitation if you want to use your own layout?

What is the solution if you'd want to compile your app with a custom
layout?

Ranjeev

On Nov 8, 5:53 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
> You can do
>
> {{extend mylayout}}
>
> where mylayout is a variable passed from the controller to the view
> and containing a file name. The only problem with this approach is
> that you cannot bytecode compile the app since the layout will be
> unknown at compilation time.
>
> On Nov 7, 1:05 pm, villas <villa...@gmail.com> wrote:
>
> > I believe I've seen the answer to this before, but I can't find it.
>
> > 1. How does one change the layout from the controller?  Is the best
> > way to open the view file and write to it a new {{extend
> > 'mylayout.html'}}  as in the new layout plugin ?
>
> > 2. Is there a way of including a variable inside {{brackets}} in the
> > view?
> > I mean if one could put something like {{extend =mylayout}} in the
> > view,  it would be easy.  Sorry if that's a naive question!
>
> > Thanks,  David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to