Skip to content

Add tests for jinja examples in our book#574

Merged
Kijewski merged 3 commits intoaskama-rs:masterfrom
GuillaumeGomez:add-new-test
Aug 17, 2025
Merged

Add tests for jinja examples in our book#574
Kijewski merged 3 commits intoaskama-rs:masterfrom
GuillaumeGomez:add-new-test

Conversation

@GuillaumeGomez
Copy link
Copy Markdown
Collaborator

Fixes #458.

@GuillaumeGomez GuillaumeGomez force-pushed the add-new-test branch 3 times, most recently from 52fa5d3 to 8f64a1d Compare August 17, 2025 11:14
Comment thread book/src/filters.md Outdated
[#default]: #default

```jinja
```text
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it possible to make this ```jinja,ignore? One does not see it on the stable book branch, but on latest the jinja code is highlighted: https://askama.readthedocs.io/en/latest/template_syntax.html. It would be sad if the highlighting was disabled for half of the examples.

Hm, I don't know if highlight.js works a comma separated list, but I guess it's part of commonmark standard?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fair enough.

@GuillaumeGomez
Copy link
Copy Markdown
Collaborator Author

Added the possibility to ignore a jinja code block.

@Kijewski
Copy link
Copy Markdown
Member

This is great, thank you!

@GuillaumeGomez
Copy link
Copy Markdown
Collaborator Author

CI passed. \o/

Copy link
Copy Markdown
Member

@Kijewski Kijewski left a comment

Choose a reason for hiding this comment

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

Thank you!

@Kijewski Kijewski merged commit e8d2391 into askama-rs:master Aug 17, 2025
42 checks passed
@Kijewski Kijewski mentioned this pull request Aug 13, 2025
@GuillaumeGomez GuillaumeGomez deleted the add-new-test branch August 17, 2025 13:49
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.

Add tests for jinja examples in our book

2 participants