title: Packaging an html template, javascript and css to be consumed by multiple platforms
body: <p>I have a large rails application that I am wanting to split out into smaller applications.  The one piece of this application that will be universal to all smaller applications is the mast and footer.  I would like to extract the html, javascript and css for the mast and footer into it's own package that each app can load and render.</p>
  
  <p>The main issue I'm running into is that the apps will likely not all be written in rails. Some will be rails, some will be expressjs, some written in Go, and some may end up being written in other languages, so my solution needs to be language agnostic.  </p>
  
  <p>My thought is that I can extract the html, css and javascript into it's own git repo, use mustache templates for the html, and then use grunt or a similar build tool to build a gem, a package.json structure and a golang module.  Possibly each in it's own git submodule.  </p>
  
  <p>I'm curious if there is a more standardized way of doing this. Or if anyone knows of a simpler way of achieving this goal.</p>