title: How do I use snippets in enlive?
body: <p>I'm a Rails dev getting my feet wet in Clojure. I'm trying to do something which was very simple with ERB but I can't for the life of me figure it out in enlive. </p>
  
  <p>Say I have a simple layout file for a website in layout.html:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And I have these snippets, for instance, header.html and footer.html and this simple route.</p>
  
  <pre><code>(deftemplate layout "layout.html" [])
  
  (defroutes home-routes
    (GET "/" [] layout))
  </code></pre>
  
  <p>How can I make it so whenever a request goes to "/" it transforms the layout and inserts the header and footer snippets into it?</p>