-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Stringify Filter for Jinja2 Rendering (#9)
This pull request introduces a new `stringify` filter to the Jinja2 templating engine, enhancing the flexibility and cleanliness of variable rendering within templates. #### Changes: - **Added `stringify` filter**: - Implemented a function that converts strings to lowercase, replaces spaces with hyphens, and removes non-alphanumeric characters. - This filter was added to `filters.py` and integrated into the Jinja2 environment in `template_renderer.py`. #### Justification: The `stringify` filter ensures that dynamically generated variable names are formatted in a consistent, URL-safe, and readable way, which is especially useful when rendering template values for deployment configurations. #### Impact: - Allows for better variable handling and formatting in Jinja2 templates, improving the clarity and reliability of dynamically generated content.
- Loading branch information
Showing
6 changed files
with
50 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters