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

Add yaml,json and toml loading capability to the tera engine #298

Merged
merged 5 commits into from
Jul 7, 2023

Conversation

maxdymond
Copy link
Collaborator

Why this change?

This allows us to refer to other structured files in floki files.

Relevant testing

Unit tests added.

Checks

These aren't hard requirements, just guidelines

  • New/modified Rust code formatted with cargo fmt
  • Documentation and README.md updated for this change, if necessary
  • CHANGELOG.md updated for this change

Floki templates can use `yamlload(file="<filepath>")` in order to load values.

Signed-off-by: Max Dymond <[email protected]>
Floki templates can use `jsonload(file="<filepath>")` in order to load values.

Signed-off-by: Max Dymond <[email protected]>
Floki templates can use `tomlload(file="<filepath>")` in order to load values.

Signed-off-by: Max Dymond <[email protected]>
@maxdymond maxdymond changed the title Add yamlload,jsonload and tomlload capability to the tera engine Add yaml,json and toml loading capability to the tera engine Jul 7, 2023
@maxdymond maxdymond merged commit 9f04ec5 into main Jul 7, 2023
@maxdymond maxdymond deleted the md/loady branch July 7, 2023 09:54
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