Re: [web2py] Re: Ractive and Single Page Apps

2015-10-22 Thread Rod Watkins
This looks cool. I had not found this. I plan to study it today. Rod On Thursday, October 22, 2015 at 3:17:00 AM UTC-7, mcm wrote: > > This ractive extension could be of interest to you IMHO: > > http://ractive-require.codecorico.com/ > > 2015-10-22 10:11 GMT+02:00 p a >: > >> Two more comments: >

[web2py] Re: Ractive and Single Page Apps

2015-10-22 Thread Rod Watkins
The redirection trick is good to know. Little gotchas like that can drive you nuts. I'll put this in my vault for later when I try to learn how to use ractive for my app. On Thursday, October 22, 2015 at 1:11:13 AM UTC-7, p a wrote: > > Two more comments: > > - I don't intend to push all logic

Re: [web2py] Re: Ractive and Single Page Apps

2015-10-22 Thread Michele Comitini
This ractive extension could be of interest to you IMHO: http://ractive-require.codecorico.com/ 2015-10-22 10:11 GMT+02:00 p a : > Two more comments: > > - I don't intend to push all logic to the server, but only the "view" part > in web2py. My long term goal is to have a working API, and many r

[web2py] Re: Ractive and Single Page Apps

2015-10-22 Thread p a
Two more comments: - I don't intend to push all logic to the server, but only the "view" part in web2py. My long term goal is to have a working API, and many ractive components that can be combined in different ways, and allow to show data and/or interact with it independently. Then a person jo

[web2py] Re: Ractive and Single Page Apps

2015-10-21 Thread p a
On Wednesday, October 21, 2015 at 8:33:09 AM UTC+2, Niphlod wrote: > > if all you want is not reloading the entire page (before going to "full > logic pushed on the client, server just sends the data over") pjax takes > maybe 4 lines of code. > That was not my experience. I had been using (or ab

[web2py] Re: Ractive and Single Page Apps

2015-10-20 Thread Niphlod
if all you want is not reloading the entire page (before going to "full logic pushed on the client, server just sends the data over") pjax takes maybe 4 lines of code. On Wednesday, October 21, 2015 at 8:14:37 AM UTC+2, p a wrote: > > El miércoles, 21 de octubre de 2015, 3:39:34 (UTC+2), Rod Wat

[web2py] Re: Ractive and Single Page Apps

2015-10-20 Thread p a
El miércoles, 21 de octubre de 2015, 3:39:34 (UTC+2), Rod Watkins escribió: > > So let me ask, was the conversion to a client side SPA worth it? Also, can > I use just ractive and let web2py do the routing and some of the templating > (I guess that sort of how Massimo did it in the estore project

[web2py] Re: Ractive and Single Page Apps

2015-10-20 Thread Rod Watkins
Hi p a, What you have described is basically where I am at. I have a large multi-page app. My plan is to start as you did and "component-ize" it and convert the bulk of the views to components I can then load with ajax. To convert it to a full-fledged SPA, I'd then start using ractive to move t

[web2py] Re: Ractive and Single Page Apps

2015-10-20 Thread p a
A few months ago I decided to turn my existing, rather big and complex multi-page web2py app into a single page app. The plan is to load all the existing pages using web2py_component into the div#main_region, so that I get a working application as soon as possible, but then start to move view l

[web2py] Re: Ractive and Single Page Apps

2015-10-19 Thread Niphlod
ractive does just templating and data binding. nothing else. If you need a routing system, use a routing library. One of the best/worst things of javascript (node too) is that the world is littered by thousands of small little libraries that you can mix and match. There's no clear path, nor a c