mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
update README.md: tags-dir array support
This commit is contained in:
parent
d4e53cc0df
commit
f443576238
@ -1489,7 +1489,6 @@ With this approach, `marko-taglib.json` will be much simpler:
|
|||||||
"tags-dir": "./components"
|
"tags-dir": "./components"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Given the following directory structure:
|
Given the following directory structure:
|
||||||
|
|
||||||
* __components/__
|
* __components/__
|
||||||
@ -1528,6 +1527,14 @@ _In `marko-tag.json`:_
|
|||||||
|
|
||||||
_NOTE: It is not necessary to declare the `renderer` since the scanner will automatically use `renderer.js` as the renderer._
|
_NOTE: It is not necessary to declare the `renderer` since the scanner will automatically use `renderer.js` as the renderer._
|
||||||
|
|
||||||
|
`tags-dir` also accepts an array if you have taglibs organized in multiple folers.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"tags-dir": ["./components", "./modules"]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Nested Tags
|
## Nested Tags
|
||||||
|
|
||||||
It is often necessary for tags to have a parent/child or ancestor/descendent relationship. For example:
|
It is often necessary for tags to have a parent/child or ancestor/descendent relationship. For example:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user