That would not work because the include has precedence over the if in 
web2py template. You cannot conditionally include.

On Thursday, 18 September 2014 03:38:40 UTC-5, Leonel Câmara wrote:
>
> >  If there are ways to stop this from showing up accidently anyway, I 
> fully intend on using it.
>
> You can have something like this in layout.html
>
> {{if request.is_local:}}
>     {{include plugin_devbar.html}}
> {{pass}}
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to