Chris's Wiki :: blog/python/TemplatingVsSimpleHTML Commentshttps://utcc.utoronto.ca/~cks/space/blog/python/TemplatingVsSimpleHTML?atomcommentsDWiki2009-01-23T16:43:26ZRecent comments in Chris's Wiki :: blog/python/TemplatingVsSimpleHTML.By Chris Siebenmann on /blog/python/TemplatingVsSimpleHTMLtag:CSpace:blog/python/TemplatingVsSimpleHTML:0edccb7e38c5e193fd707ec0bd60ede65ed3e886Chris Siebenmann<div class="wikitext"><p>I put my view of what I'll call the HTML tax into a new entry, <a href="https://utcc.utoronto.ca/~cks/space/blog/python/TheHTMLTax">TheHTMLTax</a>.
In general, I think that people's perceptions of the annoyances of writing
HTML by hand vary a lot, and I'm clearly fairly far on one end of the
spectrum.</p>
</div>2009-01-23T16:43:26ZFrom 168.77.204.182 on /blog/python/TemplatingVsSimpleHTMLtag:CSpace:blog/python/TemplatingVsSimpleHTML:2d546dbc2cedf464bbbffe8c56a0c253509ef34eFrom 168.77.204.182<div class="wikitext"><p>I don't get it. If the html you're trying to generate is verbose and annoying to write then you're not generating 'simple html'.</p>
<p>This:
from html import *
page = HTML(HEAD(TITLE("Qwerty")),</p>
<pre>
BODY(H1("Qwerty's page"),
P("Some text goes here.")))
</pre>
<p>print page</p>
<p>takes about as much time to write as the normal html version in a string with tokens and it's not all that much more readable.</p>
<p>-aarjona</p>
</div>2009-01-15T13:45:15Z