Reminds me of htmlgen.  I wrote something similar for HTML generation as
well:

  http://tinyurl.com/2mf6

It looks like:

from SimpleHTMLGen import html

p = html.html(html.head(html.title('my page here')),
              html.body(html.h1('some heading'),
                        html.p('a paragraph'),
                        html.p('another paragraph'),
                        html.table(cellspacing=2, cellpadding=3, border=1,
                                   c=[html.tr(html.td('top left'), html.td('top 
right')),
                                      html.tr(html.td('bottom left'), html.td('bottom 
right'))])
                        ))
print p

htmlgen seemed too complicated for me, where SimpleHTMLGen felt more
predictable.  But I'm really only using it for HTML contained in code,
not entire pages.

On Tue, 2002-11-12 at 01:50, David McNab wrote:
> On Tue, 12 Nov 2002 20:36, Chuck Esterbrook wrote:
> > Can you post an example of using HTMLTag for page generation?
> 
> Hardly a live case, but I've put up a tarball of my TagWriter class, and a 
> demo of its use.
> 
> http://www.freenet.org.nz/downloads/tagwriter.tgz
> 
> Note that it's a work in process - I'm in the process of adding a scheme for 
> parameter substitution, so that TagWriter instances can be used as templates.
> 
> Cheers
> David
> 
> PS I've taken a lot of shit on #python for doing this. People seem to think 
> that only lamers use CGI for Python, and ignore any arguments that commercial 
> hosts with Zope are in the tiniest minority and are much mroe expensive.
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to