Merge pull request #71 from aselvaraj/master

update README.md: tags-dir array support
This commit is contained in:
Patrick Steele-Idem 2015-05-03 09:23:54 -06:00
commit 33ab147ec5

View File

@ -1489,7 +1489,6 @@ With this approach, `marko-taglib.json` will be much simpler:
"tags-dir": "./components"
}
```
Given the following directory structure:
* __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._
`tags-dir` also accepts an array if you have taglibs organized in multiple folers.
```json
{
"tags-dir": ["./components", "./modules"]
}
```
## Nested Tags
It is often necessary for tags to have a parent/child or ancestor/descendent relationship. For example: