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

Feature/meta tag to cancel rendering #4

Merged
merged 2 commits into from
May 30, 2024

Conversation

CCP-Zeulix
Copy link
Collaborator

No description provided.

### Added

- New Extension that adds a `{% skip_if %}` tag where you can insert any
  condition (e.g. checking the Context) and if it evals as True, a
  `CancelRendering` exception is raised and caught by the Renderers causing
  them to silently just skip rendering that template.
  - The `StringRenderer` returns `None`
  - The `StoutRenderer` prints out nothing
  - The `FileRenderer` doesn't create an output file
- Added unittests for the `{% skip_if %}` tag
@CCP-Zeulix CCP-Zeulix merged commit c03cbdb into main May 30, 2024
10 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.

None yet

1 participant