I admit I do that. Otherwise you can do

<script>
var t;
jQuery.getJSON('someaction.json').then(function(data){t=data;});
</script>

and 

def someaction(): return response.json({'data':'value'});

The main problem I have is that of building URLs in static ractive pages 
since there is no URL(...) function.



On Wednesday, 23 July 2014 08:57:34 UTC-5, chuan137 wrote:
>
> Hi All,
>
> For quick and dirty develop, is it a good idea to do
>
> <script>
> var  t=<%=XML(response.json(rows))%>
> </script>
>
> in template page?
>
>
> Dear Massimo, can you share how do you use Ractivejs usually? For big 
> project, I would divide front end codes from server end. But how about for 
> simple page, where I only need to load data on startup?
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to