-
-
Notifications
You must be signed in to change notification settings - Fork 190
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
Directory datasource #215
Comments
@zealic Thanks for the feature request! This is indeed something I'd like to do. A similar idea was put forward in #124, though in that one the datasource aliases were inferred based on filename, whereas I think I slightly prefer this proposed syntax. I can start working on this soon, unless you were hoping to implement it? |
I'm no plan to implement it for this time. Thank you for your work. I love gomplate ❤️ , it help me resolve many problems. |
@zealic you're welcome! 😀 I'll see if I can find time to work on it soon. Thanks again for the request! |
Fleshing out this idea in my head a bit more, I think the approach of using a trailing Here's how it could work with the various supported datasources:
It'd take some time to get here, though, and I think the natural place to start is with |
A new feature data.Directory:
Datasource will recursive scan directory files, include:
Example
Datasource directory
file: config/message.json
file: config/person.yml
Shell code:
# Datasource need endwith slash gomplate -d config=./config/ ...
Template:
OUTPUT:
The text was updated successfully, but these errors were encountered: