Bill Janssen wrote:
I don't know about you, but generating HTML with pure Python code can be
messy--ONE reason why we introduce templateing languages in the first
place. Often (not always) the best way to end up with XHTML is to start
with a valid or almost-valid XML document and then infuse the
This works for small scale projects where only a few developers are
expected to know the codebase.
Sure. It was a small scale example. For larger projects you'd use
more abstraction layers, accessing (for example) template strings via
method calls which would provide the ability to do things
I don't know about you, but generating HTML with pure Python code can be
messy--ONE reason why we introduce templateing languages in the first
place. Often (not always) the best way to end up with XHTML is to start
with a valid or almost-valid XML document and then infuse the dynamic
content.