Sha256: 113034fbcee721bfa745130dba5cd6c0571c747f093c57bd14ff7dd6d8881622
Contents?: true
Size: 906 Bytes
Versions: 1
Compression:
Stored size: 906 Bytes
Contents
HTML-AutoTag (ruby) =================== Just another HTML tag generator for ruby. [![Gem Version](https://badge.fury.io/rb/HTML-AutoTag.svg)](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).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
HTML-AutoTag-0.0.6 | readme.md |