title: modx create layout with chunk and call with template
body: <p>I'm using modx revolution. I'd like to create a chunk called layout that calls other chucks example</p>
  
  <p>Head
  header
  nav
  body
  footer</p>
  
  <p>then in my template do something like //open layout tag[[$layout]] [[$layout]]//close layout tag. then inside of the the open close tags append my [[*content]]. this would allow me to reuse my layout template over and over again without having to replicate it in the templates. First question, is it possible, second what kind of syntax would be needed to achieve this goal? I'm rather new to modx and know it's possible with other frameworks, so any help would be appreciated. Thanks. </p>
  
  <p>Sample concept done in Apache Tapestry framework, obviously different syntax, but should give you the general idea of what I'm looking for.</p>
  
  <p>components/Chunks used. </p>
  
  <p>Layout
  Header
  Nav
  Footer</p>
  
  <p>Inside of layout</p>
  
  <pre><code>&lt;html&gt;
      &lt;t:Header/&gt;
      &lt;t:Nav/&gt;
      &lt;t:Body/&gt;
      &lt;t:Footer/&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Inside of Index/Template</p>
  
  <pre><code>&lt;t:Layout&gt;
          template body content goes here ex. [[*content]]
  &lt;/t:Layout&gt;
  </code></pre>
  
  <p>Hope this helps to clarify.</p>