HTML-AutoTag (ruby)
===================
Just another HTML tag generator for ruby. [](https://badge.fury.io/rb/HTML-AutoTag)
Description
-----------
Generate HTML tags with ease (HTML4, HTML5, XHTML and SVG).
Synopsis
--------
```ruby
require 'HTML/AutoTag'
auto = HTML::AutoTag.new( 'indent' => ' ' )
puts auto.tag( 'tag' => 'p', 'cdata' => 'a paragraph' )
attr = { 'style' => { 'color' => %w{ red green } } }
data = %w{ one two three four five six seven eight }
puts auto.tag(
'tag' => 'ol',
'attr' => { 'reversed' => 'reversed' },
'cdata' => data.map{ |d| { 'tag' => 'li', 'attr' => attr, 'cdata' => d } }
)
```
Installation
------------
While you are encouraged to install, please note that this Gem is in Alpha release.
* gem install HTML-AutoTag
License and Copyright
---------------------
See [License](License.md).