execjs-rails

JavaScript-based rendering in Rails

WARNING: Early release. There will be many changes

How to use it:

Include execjs-rails in your Gemfile.

Create a file named app/assets/javascripts/server.js which contains the following:

function execjs_rails_handler(path, opts) {
  // `path` looks like "users/show"
  // `opts` is a data object passed in from Rails
}

Combine this approach with some fancy JavaScript UI frameworks and some smarty pants asset bundles, and you'll have shared client and server views for extra DRYness without sacrificing SEO.

Read the source for configuration options and more info.