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
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
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
*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';
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
//
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
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
7 matches
Mail list logo