title: compiling HTML fragments for Single Page Application (SPA)?
body: <p>Javascript Single Page Applications (SPA's) make it possible to create powerful web applications with simple technology. As an SPA becomes bigger, it seems you would need to have a way to separate the content in multiple html (and javascript an css) files to keep things manageable and maintainable.</p>
  
  <p>All examples of how to make such a bigger application seem to make use of a separate templating mechanism such as JSP or Asp.net MVC, to combine html fragments into a single html page served to the client. To me this seems like overkill for an SPA, so that leads me to the question:</p>
  
  <p><em>Is there a framework or tool(set) that allows me to compile html fragments into an html file that I can deploy to a static web server without requiring a dynamic server like IIS or Tomcat?</em></p>
  
  <p>The assumption here is that there is a web (REST) API available for the SPA to talk to.</p>