From: David Corbin Date: 2003-09-13T11:19:00+09:00 Subject: Re: HTML generation On Friday 12 September 2003 21:21, Gavin Sinclair wrote: > On Saturday, September 13, 2003, 10:45:10 AM, David wrote: > > There's amrita. A great concept, but I'm not too fond of the > > implementation. > > Please avoid top-posting. What do you dislike about the > implementation? I haven't used it for quite a while, but I understand > that after 1.something it became a lot faster. > Sorry. It just seemed a little hard to do the things I wanted to do (like href manipulation) and I definately didn't like the way it automatically deletes things that are in the data structure (because they're nil). (That's what I remember, but it's been more than a month...) I took the concept and "grew my own" that's a little more flexible and powerful I think. The "key" of the hash can be an ID, or and ID + Attribute name, or in theory (though I haven't done this yet) an XPath expression. On the right side, there are a number of possible "manipulators", including a "delete", and "appender", "replacement" (the default I think), a Form object which populates INPUT elements, etc. I *intend* to package it up for use by others, but I'm so busy I don't know when I'll get it done. I don't really want to release something like that without good doc, examples, and unit tests. -- David Corbin