Use compiled hogan.js (mustache) JavaScript templates with sprockets and the Rails asset pipeline.
Les Hill
gem "hogan_assets", "~> 1.0.2"