Skip to content
This repository was archived by the owner on Jan 22, 2021. It is now read-only.

Commit 72b58ff

Browse files
committed
Update readme and address #53
1 parent 441f6e4 commit 72b58ff

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Diff for: README.md

+21
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,25 @@ Templates.invitationEmail =
317317
layout: false
318318
```
319319

320+
The contents of the layout HTML file might look like:
321+
322+
```html
323+
<html xmlns="http://www.w3.org/1999/xhtml">
324+
<head>
325+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
326+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
327+
328+
<title>{{preview}}</title>
329+
</head>
330+
<body>
331+
<p class="hide preview-text">{{#if preview}}{{preview}}{{else}}Default preview.{{/if}}</p>
332+
333+
<!-- This is where the actual template content will be inserted. -->
334+
{{{ body }}}
335+
</body>
336+
</html>
337+
```
338+
320339
If you want to provide extra CSS to your layout's `<head>` section *from template* (perhaps custom media queries for that specific template) you can provide the `extraCSS` option:
321340

322341
```coffeescript
@@ -339,6 +358,8 @@ It's you to render the raw CSS in your layout:
339358
{{{ css }}}
340359
</style>
341360
</head>
361+
362+
<!-- ... -->
342363
</html>
343364
```
344365

0 commit comments

Comments
 (0)