From: Eric Hodel Date: 2004-04-14T11:46:13-07:00 Subject: Re: New HTML Toolkit --itqfrb9Qq3wY07cp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Bill Atkins (dejaspam@batkins.com) wrote: > I was thinking today about how much I hate writing programs to > generate HTML, so I sat down and wrote some code. There's currently > nothing to make this work - it's just an idea > header1 "Here's a sample header", :class =3D> 'modern' Setting attributes in this manner can lead to unreadable code. > The generation wouldn't necessarily be sequential. The title and name > methods would store attributes and then everything would be converted > to a string at once. It looks like you'd then have to create a structure first, then render it to HTML when it is complete. > I'd also like to add some kind of system for dealing with sessions and > forms. Possibly incorporating Borges into this would be a good idea. Well, I've already ported the hard part of your framework in Borges (simple HTML generation, render from a pre-built structure). You can find this code here: http://rubyforge.org/cgi-bin/viewcvs/cgi/viewcvs.cgi/borges/lib/Borges/HTML= /?cvsroot=3Dborges What it does not do is pretty-print the HTML, because nobody working on Seaside found it worth the effort to get it right. Instead you just get a single long string. --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --itqfrb9Qq3wY07cp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQFAfYb0MypVHHlsnwQRAjSzAKCy0CDuSXV91hwQ035lTuxG2DwCpgCfRzgd G0VzERqhgZN2m455mEocB7A= =UwVD -----END PGP SIGNATURE----- --itqfrb9Qq3wY07cp--