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
FileSystemUnified data source: added configurable dirs #412
FileSystemUnified data source: added configurable dirs #412
Conversation
For consistency with Filesystem in nanoc 4.0, I’d change the names slightly:
I’d also like to have methods (The Filesystem data source in nanoc 4.0 is not that nice yet. It doesn’t have |
# prefix: assets | ||
# data_sources: | ||
# - type: static | ||
# prefix: assets |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for spotting this :)
I'm about to replace this pull request with a commit that does what you asked for. But some tests fail because |
Hmm, @config should ideally never be nil… can you fix the code so that it is never nil? Alternative, you could have |
I started modifying the tests so that Somehow, it seems to me it's quite acceptable to change https://github.com/nanoc/nanoc/blob/master/lib/nanoc/base/source_data/data_source.rb#L61 to What do you think? PS: |
I’m OK with I’d like to only use |
I used |
…layouts content_dir for items layouts_dir for layouts
Looks good, thanks! |
FileSystemUnified data source: added configurable dirs
I added configurable prefixes to
FileSystemUnified
data source: