Is it a bad idea to return the html code from a function or method?
<p>I have this idea:</p>

<p>when someone calls <code>mysite.com/layer1/layer2/something</code>, then I want to start the action called <code>something</code>. That action is simply a file in an <code>actions</code> directory which contains a function. This function takes some context parameters and is supposed to return HTML output. This output, which goes into a variable, will then be brought into an main template, and finally the little framework will throw out the whole html output at once.</p>

<p>Now I don't know if it's good or bad design to return big amounts of html code from a function or method?</p>
