Sha256: 7bd883b53321645971c61688df44ee9466c226e9b8e9a4b7cb620be2b7b75f04

Contents?: true

Size: 596 Bytes

Versions: 2

Compression:

Stored size: 596 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_graph` and `children_for_tree_graph`, 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.

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

2 entries across 2 versions & 1 rubygems

Version Path
tree_html-0.1.1 README.md
tree_html-0.1.0 README.md