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

Always treat profile values as templates, prevent template infinite recursion #150

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

LucasPickering
Copy link
Owner

@LucasPickering LucasPickering commented Apr 9, 2024

Profile values are always treated as templates. This is technically a breaking change but in reality it probably won't break anyone's setup. This opens the door to making command arguments and file paths templated as well, which greatly increases the power of chains and templates.

A bonus of this is it deletes a ton of shitty deserialization code.

This has a major drawback, which is we may end up rendering things that the user doesn't want rendered. This is preventable by making template keys escapable, but that's a bunch of work so I'm punting on it for now. Definitely important though.
Templates are limited to 10 recursive calls total now.
@LucasPickering LucasPickering merged commit ce0be2f into master Apr 9, 2024
10 checks passed
@LucasPickering LucasPickering deleted the nested-templates branch April 9, 2024 01:04
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