| 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-07 18:06: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.1.0.tar.gz?download
|
| License: |
Ruby's |
| Dependency: |
|
| Description: |
A widget-like interface for generating HTML Tables without ever having to touch HTML tags.
- Modified the constructors for all of the classes that can contain content
to accept an optional argument. If present it is assumed to be content.
- Fixed a bug/feature in Table::Row where it didn't allow you to add or
delete Fixnums. Henceforth, Fixnum's are stringified.
- The Table::ColGroup class no longer has the content or content= methods.
This was illegal in 1.0.0 as well but it now raises a NoMethodError instead.
- Added many more tests, including tests for attribute handlers and html
handlers.
- Made the modify_html method in the HtmlHandler module private. This should
have no affect on your code.
- Added another simple sample program under doc/examples.
- Documentation updates.
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.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 (-)]
|