Re: [Wheat-developer] comments on template attributes syntax
Status: Pre-Alpha
Brought to you by:
mark_lentczner
From: Jim K. <ki...@pa...> - 2005-04-07 06:34:07
|
> http://www.wheatfarm.org/wiki/TinyTemplateAttributes > I'm leaning toward the alternate proposal (the one modeled on Nevow), > with both short-cuts. I like the alternate proposal. The short-cuts are OK, I guess, although we better only go with this if we like the full form well enough, because we use prefix a fair bit now, and those usages won't be able to use the short-cuts in the new scheme. The medium-verbosity option <tt:attribute for="title" name="next-month-title" /> strikes me as unobjectionable. The low-verbosity option tt:attributes="title=next-month-title;href= next-month-url" is hardly thrilling give that it needs all that non-self-explanatory syntax in the attribute (is the tt name the one before or after the equals?), but it does have advantages in addition to brevity: it allows one to replace nested elements with an attribute, which I suspect might be handy sometimes. So I'll offer this one a 0 on a scale of [-1,0,+1], I guess. |