You might be able to use a headless browser on the server to execute the Javascript to generate the HTML. The Meteor framework<http://www.meteor.com/blog/2012/08/08/search-engine-optimization>uses PhantomJS <http://phantomjs.org/> for this purpose. There is also Zombie.js<http://zombie.labnotes.org/>, which has a Python driver <https://github.com/ryanpetrello/python-zombie>, and the Python based Spynner <https://github.com/makinacorpus/spynner>.
Anthony On Friday, December 28, 2012 11:10:21 PM UTC-5, Alec Taylor wrote: > > Search spiders such as Google—though they now execute AJAX and parse > the result—do not work as well with dynamic content as static content. > > So I was thinking if there was some way to execute the AngularJS as > "static" files; for search-spiders and non-javascript enabled > browsers; but when they have JavaScript support execute it > client-side. > > It would also save the trouble of implementing each view twice; once > in web2py views the other in AngularJS MVC. > > Would this be possible? > > If not, how would you recommend I go about doing this? > > Thanks for all suggestions, > > Alec Taylor > --