You could do something similar, but it wouldn't work that way because you would have to define the tag when you were already parsing!  Instead you would have to make modifications to the "snippet" tag definition to record attributes it doesn't use in a tag.locals, and then add a new tag, say "echo" that outputs individual dynamic attributes.  <r:echo attr="linktext" />, for example.  Still, I don't see what that accomplishes.

Sean Cribbs
seancribbs.com

On 10/26/06, Loren Johnson <[EMAIL PROTECTED]> wrote:

Has anyone ever thought about adding an attribute to a Snippet call

  e.g. <r:snippet linktext="Read more of this column" />

and then having a way of pulling that attribute in the Snippet all using
Radius tags?:

  e.g. Snippet content <r:linktext /> more Snippet content....

This is one of those things which could lead to all "misuse" of Radiant
I suppose, but it would sure be an easy implemenation that would enable
a number of useful and potentially in-scope applications.

I have a particular use-case if there is any interest.

Thanks,

Loren Johnson
AIM: NL7XF
[EMAIL PROTECTED]

--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to