- {title}
- Replaced with the actual title
- {data}
- Replaced with the generated HTML table data
- {file path="/path/to/file"}
- Replaced with the contents of the path
In each of the following examples, the resulting table IS the output of t2t. The HTML code has not been altered in anyway by hand.
white:#ffffff red:#ff0000 green:#00ff00 blue:#0000ff brown:#a62a2a
Template File
<h1>{title}</h1>
Lorem ipsum id sit saperet ornatus, vero quaeque reprimique id vel.
{data}
At eirmod eruditi praesent mei, cu sea facer vivendum lucilius. Ne est duis noluisse percipit,
feugiat assentior omittantur vix eu. Ex dicam molestie qui,
ex sed habeo vivendum. Ei est laudem discere scribentur.
Output from: t2t --delim : --template test-template --one --title "Title" < colors
<h1>Title</h1> Lorem ipsum id sit saperet ornatus, vero quaeque reprimique id vel. <table summary="t2t table"> <tr> <td>white</td> <td>#ffffff</td> </tr> <tr> <td>red</td> <td>#ff0000</td> </tr> <tr> <td>green</td> <td>#00ff00</td> </tr> <tr> <td>blue</td> <td>#0000ff</td> </tr> <tr> <td>brown</td> <td>#a62a2a</td> </tr> </table> At eirmod eruditi praesent mei, cu sea facer vivendum lucilius. Ne est duis noluisse percipit, feugiat assentior omittantur vix eu. Ex dicam molestie qui, ex sed habeo vivendum. Ei est laudem discere scribentur.