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 array of paths for partials #119

Merged
merged 6 commits into from
Feb 13, 2017
Merged

Conversation

jimlambie
Copy link
Contributor

This PR allows specifying an array of paths for partials

In config:

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

This gives the ability to reference partials from Dust templates using the format last-part-of-directory/partial-name

For example, given a template called gallery and using the paths above:

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

Close #108
Close #115
Close #117

Copy link
Contributor

@abovedave abovedave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and confirmed working for #117 (including when symlinking the foreign folder). Many thanks @jimlambie

Copy link
Contributor

@eduardoboucas eduardoboucas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@abovedave abovedave merged commit e982d51 into master Feb 13, 2017
@abovedave abovedave deleted the feature/partial-path-array branch March 2, 2017 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants