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
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Version 0.4.0 - The "Skip If" tag update
### 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
  • Loading branch information
CCP-Zeulix committed May 30, 2024
commit 15f6490b778d440d45f97a068701cd6f77c60e0b
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.0] - 2024-05-30

### 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


## [0.3.0] - 2024-05-28

### Fixed
Expand Down
Loading