method for creating PHP templates (ie html with variables)?
<p>I'm designing my html emails, these are to be a block of html containing variables that i can store in a $template variable.</p>

<p>My problem comes with the storing in the variable part. putting all my html into php makes it a pain in the bum to work with. </p>

<p>for example, the below code is fine for a simple email but once i start getting nested tables etc its going to get really confusing...</p>

<pre><code>$template.= 'Welcome ' . $username . '&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;';
$template.= 'Thank-you for creating an account &lt;br /&gt;&lt;br /&gt;';
$template.= 'Please confirm your account by click the link below! &lt;br /&gt;&lt;br /&gt;';
$template.= '&lt;a href="' . $sitepath . '?email=' . $email . '&amp;conf_key=' . $key . '" style="color: #03110A;"&gt;&lt;font size="5" font-family="Verdana, Geneva, sans-serif" color="#03110A"&gt;' . $key . '&lt;/font&gt;&lt;/a&gt;';
$template.='&lt;/body&gt;&lt;/html&gt;';
</code></pre>

<p><strong>is there a way i can still store the html in a $var but not have to write it like this?</strong></p>
