14 |
@(Template name)
15 |
@(Is this template a layout?)
16 |
@(Layout should contain html, head and body tags and any other templates will be injected into this layout.)
17 |
@(Template)
18 |
`;
19 |
20 | exports.readme = `# Template
21 |
22 | ### Layout
23 |
24 | Use \`@{body}\` placeholder to insert other template, only works for layout
25 |
26 | Incoming data are available in the templates or layouts as \`model\`
27 |
28 | Data:
29 | \`\`\`javascript
30 | {
31 | id: 123,
32 | title: 'Homepage'
33 | }
34 | \`\`\`
35 |
36 | Template:
37 | \`\`\`html
38 |