I <3/> XML::Rabbit
Just a quick note about how much I appreciate the work Robin Smidsrød has done on XML::Rabbit. I'm now using it on a second project, and the ease in which I can quickly build a set of classes and attributes to process XML documents combined with the usual Moose-y goodness is truly wonderful.
The first project in which I used XML::Rabbit, XML::Ant::BuildFile, is still chugging away and working well.
Thank you for the praise. I really appreciate the mention. Now I just have to find some time and write up that "What is XML::Rabbit?" article that has been lurking around in the back of my head for quite some time.
As an XML::Rabbit user, would you like if I added some sugar functions to define the attributes with even less markup? If you have any naming suggestions I'd very much appreciate it.
Maybe a set of functions that takes care of the is, isa, and traits for each of the XPathFoo traits. Bonus points if you also compose in Moose::Meta::Attribute::Native::Trait::Array or ::Hash as appropriate, so that you can add delegate methods
etc.I guess I couldn't help but do some design work on how the sugar functions would look. See how positive feedback sparks interest?
I'd really like your feedback on my API suggestions here: https://gist.github.com/1231541
Name of functions, signature and such was what I came up with after thinking a bit about it. I'm not entirely sure if
has_xpath_
is the right prefix for all the functions, maybexml_
is better?What do you think?
I've created an issue for this feature in the issue tracker on github. I guess it is probably the better place to continue the discussion on this feature.
https://github.com/robinsmidsrod/XML-Rabbit/issues/2