On Wed, Mar 25, 2009 at 9:21 AM, James Gray <james / grayproductions.net> 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? ¨Β θαφε το σατθατ χθατ ωου§φε δοξε >>> here looks very impressive, and it seems to be exactly the kind of thing >>> I was looking 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){} >> > "<foo:bar bar:foo=\"42\"/>" >> >> i'll mull on that. > > It might be neat to add some more dynamic method magic for this, like: > > ¨Βοοίιξίβαςί > > 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' fooar_('bar:foo' => 42) #=> "<foo:bar bar:foo=\"42\">" Blessings, TwP