From: Tim Pease Date: 2009-03-26T00:39:56+09:00 Subject: Re: [ANN] tagz-5.0.0 On Wed, Mar 25, 2009 at 9:21 AM, James Gray wrote: > On Mar 25, 2009, at 9:23 AM, ara.t.howard wrote: > >> >> On Mar 25, 2009, at 3:11 AM, Andrew S. Townley wrote: >> >>> How does tagz handle namespaces?  I have to say that what you've done >>> here looks very impressive, and it seems to be exactly the kind of thing >>> I was looking for.  However, I need to make sure it has support for >>> namespaces, both for elements and for attributes before I can start >>> using it in anger. >>> >>> Any examples/thoughts on how this could be done? >>> >>> Cheers, >> >> nothing explicit, but it'd be pretty simple to make some helper methods >> using this technique >> >>  >> send('foo:bar_', 'bar:foo' => 42){} >>  => "" >> >> i'll mull on that. > > It might be neat to add some more dynamic method magic for this, like: > >  foo_in_bar_ { … } > > I realize that's a bad example in case you really have a tag with that name, > but you get the idea. > Set the $KCODE and use a unicode character as the separator for namespaces ... $KCODE = 'u' foo¦bar_('bar:foo' => 42) #=> "" Blessings, TwP