Richard D again ;)
pass missing was my error cleaning up index.html only half. Having added the 3 js file to application I get the error in the js console when reactive.js is run: Uncaught SyntaxError: Unexpected reserved word More specific: on the first line when importing defaults....: import defaults from 'config/defaults/options'; import easing from 'config/defaults/easing'; import interpolators from 'config/defaults/interpolators'; index.html is now: {{ractive_enabled=True}} {{extend 'layout.html'}} <div id='main'></div> <script id='main-template' type='text/ractive'> <p>Hello, [[name]]!</p> </script> <script> var ractive = new Ractive({ el: '#main', template: '#main-template', delimiters: [ '[[', ']]' ], tripleDelimiters: [ '[[[', ']]]' ] , }); </script> Thank for your patience Richard D On Wednesday, October 29, 2014 8:37:01 PM UTC+1, Leonel Câmara wrote: > > Well globals in Python are really only global to their own module, web2py > templates and controllers are not exactly python modules anyway, so, it's > complicated; just do it in the view and let the template system take care > of it. > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.