I would like to see the implementation. I am pretty sure this will break
the bytecode compilation of apps.
On Monday, 14 May 2012 04:30:23 UTC-5, Ray (a.k.a. Iceberg) wrote:
>
> Hi there,
>
> 1. I am working at my first mobile website recently. At first I spent
> (quite) some time to know and download the hard-to-find
> web2py.plugin.jqmobile.w2p, then I realize the main resource I need is just
> its views/plugin_jqmobile/layout.html, so it comes to an idea. Why not just
> pack that tiny layout file inside the default scaffold app as
> views/jqm_layout.html? (Attached in this post)
>
> 2. And then it is so easy to use it. Just {{extend "jqm_layout.html"}}
> instead of {{extend "layout.html"}} in your view files. I will also suggest
> one step further. Change the first line of generic.html from:
>
> {{extend "layout.html"}}
>
> to:
>
> {{extend response.layout or "layout.html"}}
>
> This way developers can easily switch into two (or even more) layouts on
> demand by defining a proper response.layout, yet still backward compatible.
>
> Will this go into trunk?
>
> Regards,
> Ray
>