Spreadsheet-HTML (ruby)
Just another HTML table generator for ruby.
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.