UNPKG

521 Btext/coffeescriptView Raw
1hogan = require 'hogan.js'
2
3table = "
4 <table>
5
6 <thead>
7 <tr>
8 {{#columns}}
9 <th class='{{property}}'>
10 {{title}}
11 </th>
12 {{/columns}}
13 </tr>
14 </thead>
15
16 <tbody></tbody>
17
18 </table>
19 "
20
21row = "
22 <tr>
23 {{#cells}}
24 <td data-value='{{serialized}}', class='{{className}}'>
25 {{{text}}}
26 </td>
27 {{/cells}}
28 </tr>
29 "
30
31module.exports =
32 table: hogan.compile table
33 row: hogan.compile row
\No newline at end of file