RAA - html-table/1.2.0

html-table / 1.2.0

Short description: Interface for generating HTML Tables via Ruby
Category: Library/HTML
Status: stable
Created: 2003-06-11 15:57:41 GMT
Last update: 2004-08-08 16:20:01 GMT
Owner: Daniel J. Berger (Projects of this owner)
Homepage: http://ruby-miscutils.sf.net
Download: http://prdownloads.sourceforge.net/ruby-miscutils/html-table-1.2.0.tar.gz?download
License: Ruby's
Dependency:
Requires: strongtyping/2.0.6b strong typing utilities for Ruby
Description:

A widget-like interface for generating HTML Tables without ever having to touch HTML tags.

- Added the global_end_tags= class method for the Table class. This allows
you to configure you want end tags or not for all classes, rather than
having to configure each class individually. Note that classes which
require end tags are unaffected.
- Added handling for '<<' for those classes where it was appropriate (i.e.
any class that also used 'push').
- Minor update in the Table::Row#unshift method.
- Modified the border= method in the AttributeHandler module to accept true
or false as arguments. I had forgotten that you could specify 'border' as
an attribute without a value.
- Yet more tests.

table = Table.new
tr1 = Table::Row.new
tr2 = Table::Row.new
tr3 = Table::Row.new

tr1.content = "foo", "bar", "baz"
tr2.content = 1,2,3
tr3.content = %w/hello world/

table.push(tr1,tr2,tr3)

puts table.html

### OUTPUT (RAA is stripping out the spacing) ###
<table>
<tr>
<td>foo
<td>bar
<td>baz
<tr>
<td>1
<td>2
<td>3
<tr>
<td>hello
<td>world
</table>

There are several examples included in the documentation as well. Please see the 'doc' and 'doc/examples' directories.

Versions: [1.3.3 (2009-02-05)] [1.3.2 (2008-07-15)] [1.3.1 (2008-02-08)] [1.3.0 (2006-08-03)] [1.2.2 (2005-06-17)] [1.2.0 (2004-08-08)] [1.1.0 (2004-08-07)] [1.0.0 (2004-05-24)] [0.0.4 (2004-05-16)] [0.0.3 (-)]

Edit this project (for project owner)

back to RAA top