Cell Arguments

Each cell can take a number of arguments as well. An argument block in Placemat begins with a double colon (::), multiple arguments are separated with an ampersand (&).

Ignored Cells

X

The X argument denotes a cell that should not render, this is used primarily for formatting and will be more useful when colspan and rowspan are incorporated

A|B|C
-----
1|this cell wont show ::X|2|3
ABC
123

Colspan and Rowspan

c[int] and r[int]

The c and r arguments are used to specify colspan and rowspan respectively. For these, each is followed by an integer that indicates the value. If no intereger is given the value defaults to one (1).

|Name   ::c2
ID  |First |Last
-----
001 |Scrooge|McDuck
002 |Huey   |Duck ::r3
003 |Dewey  |     ::X
004 |Louie  |     ::X
Name
IDFirstLast
001ScroogeMcDuck
002HueyDuck
003Dewey
004Louie

Classes and Ids

Classes and Ids

An argument may also be given in the block for a cell to give it class attributes or an id. This is presented similar to a css selector. So a cell like

Hello ::.blue.underline#name_columns

would compile to

<td class="blue underline " id="name_columns">Hello</td>

A more robust table may look like:

|Name   ::c2&.blue.underline#name_columns
ID  |First |Last
-----
001 |Scrooge|McDuck ::.gold
002 |Huey   |Duck ::r3&#singleId
003 |Dewey  |     ::X
004 |Louie  |     ::X

and compile to

<table>
	<tr> <th ></th><th colspan="2" class="blue underline" id="name_columns" >Name   </th> </tr>
	<tr> <th >ID</th><th >First</th><th >Last</th> </tr>
	<tr> <td >001</td><td >Scrooge</td><td class="gold" >McDuck </td> </tr>
	<tr> <td >002</td><td >Huey</td><td rowspan="3" id="singleId" >Duck </td> </tr>
	<tr> <td >003</td><td >Dewey</td> </tr>
	<tr> <td >004</td><td >Louie</td> </tr>
</table>
Name
IDFirstLast
001ScroogeMcDuck
002HueyDuck
003Dewey
004Louie