Configure multiple tags directory to marko-taglib.json

52 views
Skip to first unread message

suraj silicon

unread,
Feb 18, 2015, 3:17:40 PM2/18/15
to rapt...@googlegroups.com
Hi,

I have a marko-taglib.json at page level, module level and component level. In page I use modules and in modules I use components. However, I want to use a component directly in the page.
I wanted to know if we can add multiple tags-dir to taglib.json ?

{
    "tags-dir": "../../modules/abc",
    "tags-dir": "../../components/def"
}


Thanks

Patrick Steele-Idem

unread,
Feb 18, 2015, 3:57:02 PM2/18/15
to
Hi Suraj,

While not documented, you can pass an array to "tags-dir":

{
    "tags-dir": ["../../modules/abc", "../../components/def"]
}

Relevant code:

There was also a proposed improvement to support auto-prefixing for each directory. Take a look at the following:

Thanks,
Patrick
Reply all
Reply to author
Forward
0 new messages