Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple partial paths to be passed in the config #117

Closed
abovedave opened this issue Feb 10, 2017 · 2 comments
Closed

Allow multiple partial paths to be passed in the config #117

abovedave opened this issue Feb 10, 2017 · 2 comments
Assignees

Comments

@abovedave
Copy link
Contributor

Allow the specification of multiple partial paths. i.e.,

"paths": {
    "partials": [
        "./workspace/partials",
        "../../frontend-system"
    ]
}

The above modification will allow referencing a folder outside the /workspace/ location.

This could be then used in the Dust templates like so:

{>"../../frontend-system/gallery"/}

Or...

{>"workspace/frontend-system/gallery"/}

P.S. I imagine it would be a similar amount of work to extend this to all the paths options?

@jimlambie
Copy link
Contributor

@abovebored this can be done, but prefix for the partials will be the last part of the path, e.g.

"paths": {
    "partials": [
        "./workspace/partials",
        "../../frontend-system"
    ]
}

{>"partials/gallery"/}
{>"frontend-system/gallery"/}

Does that sound reasonable?

@abovedave
Copy link
Contributor Author

Yes, perfect @jimlambie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants