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

When processing YAML, iteratively add the YAML itself to the context #11

Open
nicerobot opened this issue Sep 15, 2018 · 0 comments
Open
Assignees

Comments

@nicerobot
Copy link
Member

When processing YAML (or JSON), after each render of the template, if there are still variables to replace, add the document to the context and render again, iterating until there are no variables remaining (or some reasonable number of iterations is reached).

Though this is somewhat unnecessary because YAML natively supports references &*, it's a little more straightforward to do it with template replacements and it can support JSON which doesn't provide any way to reference parts of the same document.

@nicerobot nicerobot self-assigned this Sep 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant