Re: [web2py] Re: Rendering 'raw' HTML for AngularJS with Web2py

2013-12-23 Thread António Ramos
Nice examples posted. I just changed my view like the following *{{response.files.append(URL('static','angular-1.2.2/angular.js'))}}* *{{response.files.append(URL('static','controllers.js'))}}* *{{extend 'layout.html'}}* * [[x]] ** This way i have both at th

[web2py] Re: Rendering 'raw' HTML for AngularJS with Web2py

2013-12-23 Thread rppowell
There are several ways to overcome the syntax collision with handlebars: 1. Change web2py's delimiter syntax to something other than double-curly-braces. 2. Have custom web2py html-helpers 3. Change handlebars's delimiter syntax. 4a. Have separate files for the handlebars templates - ng-include. 4

[web2py] Re: Rendering 'raw' HTML for AngularJS with Web2py

2013-12-22 Thread Ramos
Changing delimiters in angular, keeping web2py Style >From a book i read Delimiters {{ ... }} When you serve your Angular application from a framework like Symfony, the double curly braces {{ }} will conflict with the Twig templating engine, because it also uses the same characters as delimite

[web2py] Re: Rendering 'raw' HTML for AngularJS with Web2py

2013-05-25 Thread Steve Starr
*Dirk Krause solution did work for me but not very well, angularjs had some issues. *Now massimo's suggestion worked perfectly. Here is what I did. views/default/index.html* Bootstrap 101 Template {%include 'web2py_ajax.html'%} 'use strict';

[web2py] Re: Rendering 'raw' HTML for AngularJS with Web2py

2013-01-29 Thread Dirk Krause
and it works. links that helped: http://jsfiddle.net/Bvc62/3/ http://stackoverflow.com/questions/12923521/angular-js-custom-delimiter This would be your view Angular demo //

[web2py] Re: Rendering 'raw' HTML for AngularJS with Web2py

2013-01-29 Thread Massimo Di Pierro
You can also change the delimiters in web2py with: response.delimiters = ('') On Tuesday, 29 January 2013 14:10:04 UTC-6, Dirk Krause wrote: > > I have to apologize for my stupid question. > > Of course web2py *does* deliver raw html. But AngularJS uses the same > brackets convention as web2py

[web2py] Re: Rendering 'raw' HTML for AngularJS with Web2py

2013-01-29 Thread Dirk Krause
I have to apologize for my stupid question. Of course web2py *does* deliver raw html. But AngularJS uses the same brackets convention as web2py - that's what caused the conflict (I should write a book: 'The Art of Reading Error Messages' ... *facepalm*) There seems to be a workaround, since you