Skip to content

nvladimiroff/arboriculture

Repository files navigation

Arboriculture

A gem for building trees.

Example

Arboriculture.build do
  div(:class => 'big') do
    text 'Hello'
    text 'world'
  end
end

Will give you this tree:

Arboriculture::Node.new(:div, [], {:class => 'big'},
  [
    Arboriculture::Node.new(:text, ['Hello'], {}, []),
    Arboriculture::Node.new(:text, ['world'], {}, [])
  ]
)

About

A gem for making nice trees.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published