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

Compilate sub-directory support #155

Closed
wants to merge 4 commits into from
Closed

Compilate sub-directory support #155

wants to merge 4 commits into from

Conversation

ghost
Copy link

@ghost ghost commented May 4, 2015

Currently works many to one - input to output directories, just by passing in another option.

require("dot").process({
    path: ./templates/,
    destination: ./lib/render/,
    subDirectories: true // false by default
});

@ghost ghost changed the title Compilation sub-directory support Compilate sub-directory support May 4, 2015
@epoberezkin
Copy link
Collaborator

Not backwards compatible, so can only be added to 2.0.0

@epoberezkin
Copy link
Collaborator

@ghost I like the idea of compiling sub directories. It can be added to the current version as it is based on the option. I am not sure whether it's better to implement directory traversal option here or use some external library (like glob). It won't be bundled in if used in browser and it would substantially simplify the code... @olado what do you think?
In any case, it needs the tests - probably it's easier to add them once #211 is merged.

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

Successfully merging this pull request may close these issues.

1 participant