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
|**root**|`'./'`| String value as root path for components lookup. |
102
+
|**folders**|`['']`| Array of additional multi folders path from `options.root` or any defined namespaces root, fallback or custom. |
103
+
|**tagPrefix**|`x-`| String for tag prefix. The plugin will use RegExp with this string. |
104
+
|**tag**|`false`| String or boolean value for component tag. Use this with `options.attribute`. Boolean only false. |
105
+
|**attribute**|`src`| String value for component attribute for set path. |
106
+
|**namespaces**|`[]`| Array of namespace's root path, fallback path and custom path for override. |
107
+
|**namespaceSeparator**|`::`| String value for namespace separator to be used with tag name. Example `<x-namespace::button>`|
108
+
|**fileExtension**|`html`| String value for file extension of the components used for retrieve x-tag file. |
109
+
|**yield**|`yield`| String value for `<yield>` tag name. Where main content of component is injected. |
110
+
|**slot**|`slot`| String value for `<slot>` tag name. Used with RegExp by appending `:` (example `<slot:slot-name>`). |
111
+
|**fill**|`fill`| String value for `<fill>` tag name. Used with RegExp by appending `:` (example `<fill:slot-name>`). |
112
+
|**push**|`push`| String value for `<push>` tag name. |
113
+
|**stack**|`stack`| String value for `<stack>` tag name. |
114
+
|**localsAttr**|`props`| String value used in `<script props>` parsed by the plugin to retrieve locals in the components. |
115
+
|**expressions**|`{}`| Object to configure `posthtml-expressions`. You can pre-set locals or customize the delimiters for example. |
116
+
|**plugins**|`[]`| PostHTML plugins to apply for every parsed components. |
117
+
|**matcher**|`[{tag: options.tagPrefix}]`| Array of object used to match the tags. |
118
+
|**attrsParserRules**|`{}`| Additional rules for attributes parser plugin. |
119
+
|**strict**|`true`| Boolean value for enable or disable throw an exception. |
121
120
122
121
## Features
123
122
@@ -208,18 +207,17 @@ Please see below example to understand better.
208
207
<x-modal>Submit</x-modal>
209
208
```
210
209
211
-
### Multiple roots
210
+
### Multiple folders
212
211
213
-
You have full control where to place your components. Once you set the main root path of your components, you can then set multiple roots.
212
+
You have full control where to place your components. Once you set the base root path of your components, you can then set multiple folders.
214
213
For example let's suppose your main root is `./src` and then you have several folders where you have your components, for example `./src/components` and `./src/layouts`.
0 commit comments