A gem for building trees.
Arboriculture.build do
div(:class => 'big') do
text 'Hello'
text 'world'
end
endWill give you this tree:
Arboriculture::Node.new(:div, [], {:class => 'big'},
[
Arboriculture::Node.new(:text, ['Hello'], {}, []),
Arboriculture::Node.new(:text, ['world'], {}, [])
]
)