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

Enable multi-file data ingest over commandline, including for dynamic config #86

Merged
merged 10 commits into from
Oct 14, 2020

Conversation

briandominick
Copy link
Collaborator

Addresses issue #85.

rake {dev only)   ~> 10.0
asciidoctor       ~> 2.0
asciidoctor-pdf   = 1.5.3
jekyll            ~> 4.0
jekyll-asciidoc   ~> 3.9
* Add proc get_payload & method add_payload
** Abstracts liquify operations shared by parse acton and dynamic config-parsing
** Translates DataFiles objects to ingestible (scoped) data for feeding templates
** get_payload reads files, scopes variables; add_payload bulk merges them into data_obj
* Commandline args accommodate appending data to config (--data/-d file1.yml,file2.json)
** Properly maps comma-delimited filepaths to DataFiles object
** passes this object as @data_files/data_files along during --config builds
** Enables multi-datasource template processing via commandline
** Ex: bundle exec liquidoc -d data/file1.yml,data/file2.xml -t template.html -o out.html
* Reorganizes add_data! methods so data object is required, scope optional (default: "")
@briandominick briandominick merged commit f8cee71 into master Oct 14, 2020
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.

1 participant