I believe that TWiki would benefit a lot in making much more usage of tables.
What is a form? is it not not a table with some kind of template?
you probably will find more.
All this implement their own parsing (and rendering) of the tables. Why?
My preference would be to write a unique module (Tabx) to parse the tables in an internal representation (inspired from DOM ?, but using only 20% of it to get 80% of the benefits !?).
Plugins writer (as well as TWiki own modules) could then use the methods (or functions ?) provided to access this table object.
some examples of methods:
|
|
| renderHtml |
|
|
| renderForEdit |
|
|
| hash=getHash(col1,col2) |
would return a hash (or reference to a hash ) |
usefull for CalendarPlugin, PrefsVariables? |
| @array=getRow(rowNumber) |
|
|
| @array=getCol(colNumber or colName) |
|
|
|
|
|
What is a topic? perhaps a special table with only 1 column?( quite too early !)
--
MarcelTrap - 09 Sep 2003
Topic revision: r1 - 09 Sep 2003 - 11:48:00 -
MarcelTrap