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
+55-9Lines changed: 55 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,10 +92,16 @@ The final HTML will be:
92
92
93
93
### encoding
94
94
95
-
The encoding of the parent template. Default: "utf8".
95
+
Type: `string`\
96
+
Default: `utf8`
97
+
98
+
The encoding of the parent template.
96
99
97
100
### plugins
98
101
102
+
Type: `array`\
103
+
Default: `[]`
104
+
99
105
You can include [other PostHTML plugins](http://posthtml.github.io/posthtml-plugins/) in your templates.
100
106
Here is an example of using [posthtml-expressions](https://github.com/posthtml/posthtml-expressions), which allows to use variables and conditions:
101
107
@@ -136,17 +142,23 @@ The final HTML will be:
136
142
137
143
### root
138
144
139
-
The path to the root template directory. Default: "./".
145
+
Type: `string`\
146
+
Default: `./`
147
+
148
+
The path to the root template directory.
140
149
141
150
### strict
142
151
143
-
Whether the plugin should disallow undeclared block names. Default: true.
152
+
Type: `boolean`\
153
+
Default: `true`
154
+
155
+
Whether the plugin should disallow undeclared block names.
144
156
145
-
By default, posthtml-extend raises an exception if an undeclared block name is encountered. This can be useful for troubleshooting (i.e. detecting typos in block names), but
157
+
By default, the plugin raises an exception if an undeclared block name is encountered. This can be useful for troubleshooting (i.e. detecting typos in block names), but
146
158
there are cases where "forward declaring" a block name as an extension point for downstream templates is useful, so this restriction can be lifted by setting the `strict`
0 commit comments