News for hackers. Stuff that matters.
Re:We've Open-sourced Rendr by don_draper on Friday April 19, 2013 @12:28PM (#5577438)
Are there any similar efforts to tie the server with the client, reducing duplication, for Angular?
Re:We've Open-sourced Rendr by davej on Friday April 19, 2013 @01:03PM (#5577608)
Angular uses DOM templating instead of string-based templating (most current JS templating engines are string-based), so you would definitely need to fire up a headless browser (PhantomJS) or DOM (JSDOM) of some sort to get it working.

It would be very slow if you were doing this dynamically so you would probably want to regularly compile and cache your pages.

Some links on this topic: https://github.com/steeve/angular-seo http://www.yearofmoo.com/2012/11/angularjs-and-seo.html

Re:We've Open-sourced Rendr by jameswyse on Friday April 19, 2013 @03:04PM (#5578175)
Yeah this is the best way to serve rendered pages to search engines. I also found this project: https://github.com/ithkuil/angular-on-server - Which might be worth looking at too.
Re:We've Open-sourced Rendr by csmatt on Friday April 19, 2013 @12:38PM (#5577480)
The first thing I thought of that is similar to Rendr is http://meteor.com/ . I'm not sure about how it works with Angular. It does describe itself as a framework where Rendr describes itself as a library, so I'd think it'd be easier to run Angular stuff on top of Rendr.
Re:We've Open-sourced Rendr by jjsz on Friday April 19, 2013 @01:42PM (#5577807)
There's also hoodie + yeoman, but there aren't any adapters for angular yet. For some reason angular doesn't get official love from libraries like rendr and meteor.