I knew that I could understand this after posting the question. Using the goal! this is the answer
xml.Foo do
xml.built('build with builder')
xml.alsobuilt do
xml.builtinside('built inside')
xml.target! << my_string_with_xml
end
end
Achieves the desired results.
source
share