I am glad you agree but if there is consensus in implementing your original
request, I do not have a problem with it.
On Sunday, 16 March 2014 03:17:22 UTC-5, David Simmons wrote:
>
> Hi Massimo
>
> I've spent some time thinking about my own suggestion and I now believe
> that changing the delim
Hi Massimo
I've spent some time thinking about my own suggestion and I now believe
that changing the delimiter in either Web2py or Angular is actually a
better idea than mine. I'm happy to either withdraw my proposal or submit
if you think it should be discussed further.
cheers
Dave
--
Reso
Please open a ticket. We will discuss on web2py-developers.
On Friday, 14 March 2014 14:17:44 UTC-5, David Simmons wrote:
>
> Hi Leonel
>>
>
> I think you are correct in that it might make it a little more difficult
> to parse. My problem with having to change either of the delimiters for
> Angu
>
> Hi Leonel
>
I think you are correct in that it might make it a little more difficult to
parse. My problem with having to change either of the delimiters for
Angular or Web2py is that I have to remember to change them for everything.
For example if I change the
web2py delimiters I then have
David, I don't like that idea as I think it makes the views harder to
parse. I need to remember that I'm inside a verbatim block to know if I'm
reading python or not. I don't like the extra mental strain so I prefer the
changing the delimiters strategy as I have a reminder of what I'm reading
i
Hi Massimo
I appreciate you can change either Web2py or Angular delimiters but the
small code change I have suggested allows you to have the best of both
worlds. If you change one of the delimiters it means you need to be careful
with anything that might rely on it.
Is there any reason why we
LightDot
The implementation I put together was only done last night and I have done
limited testing. I did it as I feel Web2py and Angular make a fantastic
combination and want to explore the two working together more.
I'm really keen to understand from Massimo and other Web2py guru's if my
id
That's not how we do it. You either tell web2py to use different delimiters:
response.delimiters = ('<%', '%>')
or you tell angular to do so:
var myApp = angular.module('myApp', [], function($interpolateProvider) {
$interpolateProvider.startSymbol('[[');
$interpolateProvider.endSymbol(']
Hi Massmo,
On Friday, March 14, 2014 2:46:58 PM UTC+1, Massimo Di Pierro wrote:
>
> {{data.message + " world!"}}
>
> should be
>
> {{= data.message + " world!"}}
>
No... this part is fictional AngularJS code, just meant as an example.
I think you're missing the point of this thread, and that is
{{data.message + " world!"}}
should be
{{= data.message + " world!"}}
On Thursday, 13 March 2014 17:21:28 UTC-5, David Simmons wrote:
>
> Hi All (again).
>
> I did some digging around with the web2py source code and came up with
> this.
>
> https://gist.github.com/shortly-portly/9538005
>
>
Hi All (again).
I did some digging around with the web2py source code and came up with
this.
https://gist.github.com/shortly-portly/9538005
The usage is pretty straight forward. You can use normal Web2py tags {{ and
}}. When you want to drop down into Angular, surround your stuff with {{
Hi Leonel.
I know you can change the web2py delimters but that means views that uses
extends has to be modified. If you simply switch of the interpretation of
{{ for a block of html then you could mix and match angularjs and web2py.
cheers
Dave
--
Resources:
- http://web2py.com
- http://web2
You can change web2py delimiters. For instance if you put this in your
model:
response.delimiters = ('')
You can use php style delimiters.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2
13 matches
Mail list logo