chrisroberts/dav4rack — pull request #49 by mlmorg (2012-11-07 20:19:41+00:00)
Title: Add ability to build xml from within a resource

I think it would be useful to be able to return xml from the get_property methods and this makes that task simpler:

```ruby
def resource_type
xml_frag(:resourcetype) do |xml|
xml.collection
xml['card'].addressbook
end
end
```

A better option may be to pass the xml document directly to each get_property method (i.e. resource_type) so that they can edit the doc directly, but that would involve a much larger rewrite of the controller/resource that I'm not sure if you would be interested in.