title: Rails Client side / Server side rendering using single template (handlebars or Mustache) with Sammy.js
body: <p>I've searched the web for a while looking for a tutorial, but haven't had much luck.</p>
  
  <p>From what I understand, Twitter is using a single Mustache.js template in rails to render from the server on first page load, and then through their own ajax transition system (much like sammy.js).</p>
  
  <p>I can get handlebars and sammy.js loaded in rails, but I can't figure out how to share a single template file from server(rails) &amp; client(sammy) side.</p>