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

Commits on May 30, 2024

  1. banani

    CCP-Zeulix committed May 30, 2024
    Configuration menu
    Copy the full SHA
    42dc401 View commit details
    Browse the repository at this point in the history
  2. 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
    CCP-Zeulix committed May 30, 2024
    Configuration menu
    Copy the full SHA
    15f6490 View commit details
    Browse the repository at this point in the history