Reduce duplication in Jbuilder templates when generating Atom feeds
Description
We have some copy-pasted code in Jbuilder templates that generate Atom feeds:
xml.instruct!
xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://search.yahoo.com/mrss/" do
# stuff
end
Proposal
Extract it to some kind of "layout" template (maybe even using Rails layout feature if possible).