You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,16 @@ Loads a layout partial of a given name and defines block content.
28
28
{{/extend}}
29
29
```
30
30
31
+
The `{{#extend}}` helper allows you to reason about your layouts as you would class extension where the above is equivalent to the following psuedo code:
32
+
33
+
```js
34
+
classPageextendsLayout {
35
+
title() {
36
+
return'Example - '+super();
37
+
}
38
+
}
39
+
```
40
+
31
41
### `{{#embed [partial]}}`
32
42
33
43
-`partial``String` - Name of partial to render.
@@ -54,6 +64,23 @@ Allows you to load a partial which itself extends from a layout. Blocks defined
54
64
{{/extend}}
55
65
```
56
66
67
+
The `{{#embed}}` helper allows you to reason about your partials as you would class instantiation where the above is equivalent to the following psuedo code:
0 commit comments