From: Bruce Williams Date: 2003-02-16T16:59:59+09:00 Subject: Re: why html template systems never use new tags? On Saturday 15 February 2003 10:37 pm, Tim Bates wrote: | On Sun, 16 Feb 2003 01:34 pm, Robert Hahn wrote: | > Yeah, pretty much. But I think there's a very important reason not to | > use class, or id (which I believe Amrita uses) - you're overloading the | > meaning of that attribute. | | | | >The possibility of the | > programmer's wishes conflicting with the designers is, in my humble | > opinion, too great to risk designing a templating system around. | | Amrita does use 'id', it's true, but I believe you can change this at | runtime to anything you want, if that becomes a problem. 'id' is just the | default. | | Tim Bates To expand on this (for those that don't subscribe to amrita-users), the following methods can be used: (1) keep_id If you set this options of Amrita::Template object like template.keep_id = true amrita dose not delete id attributes. (2) amrita_id If you set a name of attribute to this option, amrita use the attributes with that name for template expansion. (3) escaped_id If you set a name of attribute to this option, amrita will convert the attribute of that name to 'id=' for output. (the above courtesy of Nakajima-san) // Bruce -- Bruce R. Williams :: [iusris/#ruby-lang] :: http://www.codedbliss.com 'It does not require a majority to prevail, but rather an irate, tireless minority keen to set brush fires in people's minds.' -- Samuel Adams