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

Initial commit #1

Merged
merged 1 commit into from
Dec 13, 2023
Merged

Initial commit #1

merged 1 commit into from
Dec 13, 2023

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Dec 13, 2023

No description provided.

@zanieb zanieb force-pushed the zb/initial branch 6 times, most recently from 02c167f to 3d20a43 Compare December 13, 2023 16:48
Copy link
Member

@charliermarsh charliermarsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only gave a quick read but this looks really neat and well-done.


def replace_placeholders(target: str, variables: dict[str, Any]):
for key, value in variables.items():
target = target.replace(f"{{{{ {key} }}}}", stringify(value))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume it was an intentional decision not to use a templating library here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah just trying to keep it simple unless I actually need something more serious

@zanieb zanieb merged commit 4896b91 into main Dec 13, 2023
2 checks passed
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.

2 participants