How to prepend a big DIV?
<p>I need to <code>prepend</code> a huge DIV block, which can be seen at the bottom of the question.</p>

<p>My current idea would be to put inside <strong>one</strong></p>

<pre><code>$('#content').prepend();
</code></pre>

<p>and break each like up, when I need to insert the content of a variable. That would be all the places which says <code>TMPL_VAR</code></p>

<p>The code would be quite hard to maintain and read.</p>

<p>Is there a clever way to do this?</p>

<pre><code>&lt;form action="" method="post"&gt;
  &lt;input name="anchor" value="&lt;TMPL_VAR ID&gt;" type="hidden"&gt;
  &lt;div class="row"&gt;
    &lt;div class="cellData"&gt;                                                          &lt;TMPL_VAR ID&gt;                                  &lt;/div&gt;
    &lt;div class="cellData"&gt; &lt;input name="title" id="&lt;TMPL_VAR ID&gt;_title"      value="&lt;TMPL_VAR TI&gt;" type="text" /&gt;                  &lt;/div&gt;
    &lt;div class="cellData"&gt; &lt;input name="owner" id="&lt;TMPL_VAR ID&gt;_owner"      value="&lt;TMPL_VAR OW&gt;" type="text" /&gt;                  &lt;/div&gt;
    &lt;div class="cellData"&gt; &lt;input name="from"  id="&lt;TMPL_VAR ID&gt;_begin_date" value="&lt;TMPL_VAR BD&gt;" type="text" class="datepick" /&gt; &lt;/div&gt;
    &lt;div class="cellData"&gt; &lt;input name="to"    id="&lt;TMPL_VAR ID&gt;_end_date"   value="&lt;TMPL_VAR ED&gt;" type="text" class="datepick" /&gt; &lt;/div&gt;
    &lt;div class="cellData cellRadios"&gt; &lt;input name="ctype" value="individuel" type="radio" &lt;TMPL_VAR IN&gt;/&gt; Individuel &lt;br&gt; &lt;input name="ctype" value="course" type="radio" &lt;TMPL_VAR CO&gt;/&gt; Course &lt;/div&gt;
    &lt;div class="cellEdit"&gt; &lt;a href="javascript:showhide('&lt;TMPL_VAR ID&gt;');"&gt;Members&lt;/a&gt; &lt;input value="Save" type="submit"&gt;                 &lt;/div&gt;
  &lt;/div&gt;
  &lt;div id="&lt;TMPL_VAR ID&gt;" style="display: none; background-color: #fff8e7;"&gt;
    &lt;div class="rowMembers"&gt;
      &lt;span&gt;
    &lt;label&gt; Users  &lt;/label&gt; &amp;nbsp; &lt;input name="users"  id="&lt;TMPL_VAR ID&gt;_users"  size="35" value="&lt;TMPL_VAR US&gt;" type="text" /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
    &lt;label&gt; Groups &lt;/label&gt; &amp;nbsp; &lt;input name="groups" id="&lt;TMPL_VAR ID&gt;_groups" size="35" value="&lt;TMPL_VAR GR&gt;" type="text" /&gt;
      &lt;/span&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/form&gt;
</code></pre>
