mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-19 22:40:48 -07:00
Update layout.md
Fix typo
This commit is contained in:
@@ -12,7 +12,7 @@ Renders current template inside a layout template from the template [roots][root
|
|||||||
{% layout 'footer.liquid' %}
|
{% layout 'footer.liquid' %}
|
||||||
```
|
```
|
||||||
|
|
||||||
Whe the [extname][extname] option is set, the above `.liquid` extension can be omitted and writes:
|
When the [extname][extname] option is set, the above `.liquid` extension can be omitted and writes:
|
||||||
|
|
||||||
```liquid
|
```liquid
|
||||||
{% layout 'footer' %}
|
{% layout 'footer' %}
|
||||||
@@ -31,7 +31,7 @@ Variables defined in current template can be passed to a the layout template by
|
|||||||
|
|
||||||
## Blocks
|
## Blocks
|
||||||
|
|
||||||
The layout file can contain multiple `block`s which will be populated by the child template (the caller). For example we have a `default-layout.liquid` file with the following contents:
|
The layout file can contain multiple `blocks` which will be populated by the child template (the caller). For example we have a `default-layout.liquid` file with the following contents:
|
||||||
|
|
||||||
```
|
```
|
||||||
Header
|
Header
|
||||||
|
|||||||
Reference in New Issue
Block a user