title: Use ant to wrap html code in static template
body: <p>I have several HTML files located in different places (in a common root), like this:</p>
  
  <pre><code>index.html
  moduleA/list.html
  moduleA/add.html
  moduleB/list.html
  moduleB/add.html
  ...
  </code></pre>
  
  <p>Additionally I have one file called _template.html, that contains HTML code and a placeholder <code>#CONTENT#</code>.
  What I need:</p>
  
  <ol>
  <li>Copy all HTML files to public/ directory</li>
  <li>Each HTML file in public/ directory should also have code from _template.html wrapped around the original content.</li>
  </ol>
  
  <p>I use ANT to copy the files, but I cannot figure out how to wrap the template-code around the code...
  My ANT script looks like this:</p>
  
  <pre><code>&lt;project default="build"&gt;
      &lt;target name="build"&gt;
          &lt;copy todir="${dir.intermediate}/temp"&gt;
              &lt;fileset dir="${dir.source}" includes="**/*.html"/&gt;
          &lt;/copy&gt;
      &lt;/target&gt;
  &lt;/project&gt;
  </code></pre>
  
  <hr>
  
  <p><strong>Example:</strong></p>
  
  <p>index.html </p>
  
  <pre><code>&lt;div&gt;This is the index-page&lt;/div&gt;
  </code></pre>
  
  <p>_template.html</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;&lt;title&gt;Page-Title&lt;/title&gt;&lt;/head&gt;
      &lt;body&gt;
          #CONTENT#
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Should generate output file:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;&lt;title&gt;Page-Title&lt;/title&gt;&lt;/head&gt;
      &lt;body&gt;
          &lt;div&gt;This is the index-page&lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>