Re: [web2py] Re: How to check for the existence of a var in the layout.html?

2016-08-08 Thread António Ramos
:) 2016-08-08 15:24 GMT+01:00 Massimo Di Pierro : > > {{if 'f1' in globals():}} {{pass}} > > > On Monday, 8 August 2016 06:33:55 UTC-5, Ramos wrote: >> >> hello i need to check for some vars in my *layout.html* >> >> if i have in my controllers return locals() >>

[web2py] Re: How to check for the existence of a var in the layout.html?

2016-08-08 Thread Massimo Di Pierro
{{if 'f1' in globals():}} {{pass}} On Monday, 8 August 2016 06:33:55 UTC-5, Ramos wrote: > > hello i need to check for some vars in my *layout.html* > > if i have in my controllers return locals() > > i can then in the view do > > {{if var1 in locals():0}} > > ... > {{pass}} > > however