Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: add support for nested template rendering #19

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

micovery
Copy link
Collaborator

@micovery micovery commented Oct 25, 2024

Up to now, you could only templetize the main file, or define helper functions.

This change makes it so that you can render any arbitrary file like this:

{{ include "./path/to/file.yaml" . }}

This is useful for dynamically generating policies without having to in-line them in the main template.

Also, add a --debug=true flag to help users troubleshoot template rendering

@micovery micovery self-assigned this Oct 25, 2024
@micovery micovery force-pushed the feat_nested_template_rendering branch from 6db27f4 to eed105f Compare October 25, 2024 05:57
Up to now, you could only templetize the main file, or define helper functions.

This change makes it so that you can render any arbitrary file like this:

{{ include "./path/to/file.yaml" . }}

This is useful for dynamically generating policies without having to in-line them in the main template.
@micovery micovery force-pushed the feat_nested_template_rendering branch from eed105f to a6b6133 Compare October 25, 2024 06:12
@micovery micovery merged commit f69787c into apigee:main Oct 29, 2024
1 check passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants