update README.md: tags-dir array support

This commit is contained in:
aselvaraj 2015-05-03 01:10:59 -07:00
parent d4e53cc0df
commit f443576238

View File

@ -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: