balupton/docpad — Issue #93: Server side template rendering
Author: jokull
Created: 2011-11-01 13:20:12+00:00
State: open

Web is moving to serving empty HTML sans data then populating the DOM with JSON. This is a problem for Google as all the data is invisible. Backbone documentation encourages authors to ship the initial data with the HTML, for quicker loading, but this still doesn't solve anything for SEO and indexation.

Can DocPad be the first framework to solve this problem by being DOM aware and serve pages with the initial data already injected into the HTML. Perhaps some kind of headless WebKit processor? We could observe some code from the testing frameworks like [Zombie.js](http://zombie.labnotes.org/). I wonder if this is fast enough to do on a per request basis, at least in a development environment.