Skip to content

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