TinyButStrong - the PHP Template Engine

Example of dynamic columns

this TBS template is W3C compliant Valid XHTML 1.1

Creating dynamic columns with TinyButStrong is simple since version 3.9.0 thanks to parameter parallel. but a bit delicate. You first have to merge colmuns before rows in order to have expanded columns on every futur rows. This is facilitated by parameter "parallel". Then you have to merge rows.

In this example, the script creates a multiplication table with alternated row's color. You can change the number of columns and rows.

Number of rows:       Number of columns:      
X [c.key;block=td;parallel=tbs:table]
[r.$;block=tr] [r.[c.val]]
[r.$;block=tr] [r.[c.val]]