title: Pure HTML + JavaScript client side templating
body: <p>I want to have achieve something similar to Java Tiles framework using only client side technologies (no server side includes).</p>
  
  <p>I would like to have one page, eg <strong>layout.html</strong> which will contain layout definition. Content placeholder in that page would be empty #content div tag.</p>
  
  <p>I would like to have different content injected on that page based on url. Something like <strong>layout.html?content=main</strong> or <strong>layout.html?content=edit</strong> will display page with content replaced with main.html or edit.html.</p>
  
  <p>The goal is to avoid duplicating code, even for layout, and to compose pages without server-side templating.</p>
  
  <p>What approach would you suggest?</p>
  
  <p>EDIT: I don't need a full templating library, just a way to compose a pages, similar for what tiles do.</p>