Sha256: 7fa20f4b94dae8676d1b7bf5f580e938839baf557d2937386ee4d9cae8316c35
Contents?: true
Size: 660 Bytes
Versions: 3
Compression:
Stored size: 660 Bytes
Contents
# TreeHtml Generate plain css tree structure. ## Installation Add this line to your application's Gemfile: ```ruby gem 'tree_html' ``` And then execute: $ bundle Or install it yourself as: $ gem install tree_html ## Usage In Node class, `include TreeHtml`, then implement `label_for_tree_html` and `children_for_tree_html`, then call`tree_html` on node object to get ul/li fragment, or `tree_html_full` to get a html file with pre-defined style. You may overwrite `css_for_tree_html` to specify your own style. Or checkout [test/tree_html_test.rb](https://github.com/turnon/tree_html/blob/master/test/tree_html_test.rb) to see how to use.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tree_html-0.1.4 | README.md |
tree_html-0.1.3 | README.md |
tree_html-0.1.2 | README.md |