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){}
> => "<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 ame, but you get the idea.