Skip to content

namusyaka/data-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

data-converter

DataConverter convert Array and Hash into HTML.

Installation

add this line to your Gemfile.

gem 'data-converter'

or

$ gem install data-converter

Usage

require 'data-converter'

DataConverter.parse([0,1,2,3]) #=> "<ul><li>0</li><li>1</li><li>2</li><li>3</li></ul>"
DataConverter.parse(:foo => "bar") #=> "<dl><dt>foo</dt><dd>bar</dd></dl>"

Contributing to Botch

  1. fork the project.
  2. create your feature branch. (git checkout -b my-feature)
  3. commit your changes. (git commit -am 'commit message.')
  4. push to the branch. (git push origin my-feature)
  5. send pull request.

License

MIT

About

Convert hash and array into HTML(DL, UL).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages