[web2py] Re: Single page apps vs Web2py

2012-10-29 Thread Niphlod
with "single-paged-apps" you're basically pushing models and controllers logics away from web2py and towards javascript embedded into the page. Web2py doesn't "need" anything 'more' out of the box to work with that concept, you just have to code more logic using javascript and/or views. At that p

[web2py] Re: Single page apps vs Web2py

2012-12-16 Thread Arnon Marcus
Is there somewhere I can find examples of this? > > Are there any exotic experimentation for tight-integration with certain modern SPA frameworks? By "exotic" I mean, let's say, well, my 'dream implementation' of such an integration, would go something like this: Have web2py's views be sent to

[web2py] Re: Single page apps vs Web2py

2012-12-17 Thread Arnon Marcus
Another general issue regarding that: How would web2py behave using various modular javascript loaders? Do I HAVE to configure my web server so serve the static folder? How about AMD solutions (such as require.js and r.js), how would they behave? Is there a way to rout those requests through web2

[web2py] Re: Single page apps vs Web2py

2012-12-17 Thread Niphlod
every request done to /app/static/file.something is automatically served by web2py (matching a file into applications/app/static/file.something). On Monday, December 17, 2012 2:55:19 PM UTC+1, Arnon Marcus wrote: > > Another general issue regarding that: > > How would web2py behave using various

[web2py] Re: Single page apps vs Web2py

2012-12-17 Thread Arnon Marcus
I know it does for direct script-tag requests and also for that web2py-python-api-usage done in the layout.html/ajax_whatever.html thing... I mean how would a javascript-based loader do that? I'm not that well versed in requier.js, but from what I read, the "A" in AMD stands for asynchronous, so

[web2py] Re: Single page apps vs Web2py

2012-12-17 Thread Niphlod
as long as the resource loader asks for /app/static/something.js there is no absolute problem. AMD if used to load js files works his magic completely on client-side (vodoo-magic is requesting 5 js scripts at the same time without waiting and organize the evaluation in the right order). >From t

Re: [web2py] Re: Single page apps vs Web2py

2012-12-17 Thread Arnon Marcus
Swt! :) I like this kind of voodoo... 10x a lot for clearing that out. On Mon, Dec 17, 2012 at 3:24 PM, Niphlod wrote: > as long as the resource loader asks for /app/static/something.js there is > no absolute problem. AMD if used to load js files works his magic > completely on client-sid