If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!
All variables defined and returned from controllers starting with "_" (underscore) are grouped in sub-namespace called "app" whether every dictionary in variable that starts with "plugin_" generates a sub-namespace with the same identifier. 

<script type="text/javascript" charset="utf-8">
{{wupdate = dict([([k[1:], v]) for k,v in response._vars.items() if k.startswith('_')])}}
window.app = jQuery.extend(true, window.app, {{=XML(jsdumps(wupdate))}});
{{for k,v in response._vars.items():}}
    {{if k.startswith('plugin_'):}}
    	window.{{=k}} = jQuery.extend(true, window.{{=k}}, {{=XML(jsdumps(v))}});


Related slices

Comments (1)

Hosting graciously provided by:
Python Anywhere