No commit activity in last 3 years
No release in over 3 years
Just another HTML table generator
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

>= 1.0.11
 Project Readme

Spreadsheet-HTML (ruby)

Just another HTML table generator for ruby. Gem Version Build Status

Description

Generate HTML tables with ease (HTML4, XHTML and HTML5).

Synopsis

require 'Spreadsheet/HTML'

data = Array[ [1,2,3], [4,5,6], [7,8,9] ]
generator = Spreadsheet::HTML.new()
puts generator.generate( data )
puts generator.generate( 'data' => data )

generator = Spreadsheet::HTML.new( 'data' => data, 'indent' => "\t" )
puts generator.portrait( 'encodes' => 1 )
puts generator.landscape( 'encode' => 1 )

puts generator.generate( 'tgroups' => 1 )
puts generator.generate( 'tgroups' => 2, 'indent' => 'nil' )

puts generator.generate( 'tr' => { 'class' => %w{ odd even } } )

More documentation at rubydoc.info

Installation

gem install Spreadsheet-HTML

License and Copyright

See License.