Re: [web2py] Re: Layout design with angular material and web2py

2016-12-23 Thread Anthony
Note, when you have an {{extend}} or {{include}} inside an {{if ...:}} block, web2py will still execute all the code in the extended/included view -- the end results will simply not be written to the final HTML sent to the browser. This is because extend and include are template language direct

Re: [web2py] Re: Layout design with angular material and web2py

2016-12-22 Thread Biplov Bhandari
UPDATE. looks like the problem is solved. I had to add at least one {{pass}} in layout.html. just added a single {{pass}} at the end of tag. The form is loaded now. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - htt

Re: [web2py] Re: Layout design with angular material and web2py

2016-12-22 Thread Biplov Bhandari
UPDATE I changed the deliminator of web2py as response.delimiters = ('') The layout.html looks like http://pastebin.com/PqrcBtTm . It has condition to include sidebar-nav and menu-bar, and include the form. The /views/default/user.html looks like this: jQuery("#web2p

Re: [web2py] Re: Layout design with angular material and web2py

2016-12-22 Thread Biplov Bhandari
Okey I changed the web2py deliminator and retained the angular deliminator but still the form is not included. Any idea on whats going wrong here? [image: DhtDcaR.png (1674×1023)] How to include the login form? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http:

Re: [web2py] Re: Layout design with angular material and web2py

2016-12-22 Thread Biplov Bhandari
I think I have adjusted the deliminator in the angular js module. The file looks like this angular.module('mainApp', ['ngMdIcons', 'ngMaterial', 'ngSanitize', 'ngMessages']) .config(function ($interpolateProvider) { //allow Web2py views and Angular to co-exist $interpol

Re: [web2py] Re: Layout design with angular material and web2py

2016-12-22 Thread Ovidio Marinho
Another way to change the delimiter's. You can also delimiters in web2py with: Example in db.py or 0.py : response.delimiters = ('') [image: http://itjp.net.br] http://itjp.net.b r *Ovidio Marinho Falca

Re: [web2py] Re: Layout design with angular material and web2py

2016-12-22 Thread Ovidio Marinho
In rendering this is not being respected , look this http://www.web2pyslices.com/slice/show/1894/web2py-and-angularjs-handlebars-delimiters [image: http://itjp.net.br] http://itjp.net.b r *Ovidio Marinho

Re: [web2py] Re: Layout design with angular material and web2py

2016-12-22 Thread Biplov Bhandari
Hello Ovidio, Actually my problem is not with deliminators but with the form include in the layout. In fact, the {{include "angular_module.html"}} which includes angular module look like this: angular.module('mainApp', ['ngMdIcons', 'ngMaterial', 'ngSanitize', 'ngMessages']) .config

Re: [web2py] Re: Layout design with angular material and web2py

2016-12-22 Thread Ovidio Marinho
One way to correct this is to http://www.web2pyslices.com/slice/show/1922/web2py-angularjs I hope to have [image: http://itjp.net.br] http://itjp.net.b r *Ovidio Marinho Falcao Neto* ovi

Re: [web2py] Re: Layout design with angular material and web2py

2016-12-22 Thread Ovidio Marinho
Web2py and AngularJS used identical brackets or keys "{{ }}" -They use identical keys, this needs to be modified in web2py so as not to conflict with algularJS. [image: http://itjp.net.br] http://itjp.net.b r

[web2py] Re: Layout design with angular material and web2py

2016-12-22 Thread Biplov Bhandari
The updated layout.html is attached. Any help is much appreciated! -- 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 a

[web2py] Re: Layout design with angular material and web2py

2016-12-21 Thread Biplov Bhandari
Update. I am able to load the auth/_login.html but the form is not included. The div id='body' looks like this now: {{=response.title or app_settings["system_name"]}} {{block content_form}} {{include}} {{end content_form}}