Skip to content

Releases: askama-rs/askama

v0.15.6

24 Mar 23:19

Choose a tag to compare

What's Changed

Full Changelog: v0.15.5...v0.15.6

v0.15.5

21 Mar 13:35

Choose a tag to compare

What's Changed

Full Changelog: v0.15.4...v0.15.5

v0.15.4

28 Jan 22:22
92fd0be

Choose a tag to compare

What's Changed

Full Changelog: v0.15.3...v0.15.4

v0.15.3

27 Jan 23:36
69e7247

Choose a tag to compare

What's Changed

Full Changelog: v0.15.2...v0.15.3

v0.15.2

27 Jan 15:14
99438a7

Choose a tag to compare

What's Changed

  • Correctly handle local variables in extends blocks by @GuillaumeGomez in #670
  • Better spans for #[filter_fn] by @Kijewski in #655
  • Remove mentions of salvo by @Kijewski in #659
  • Add missing information in the Upgrading to new versions chapter in the askama book by @GuillaumeGomez in #665
  • Fix invalid block call warnings coming from extends by @GuillaumeGomez in #666
  • Update duplicated blocks warning message and add warning about not compiling starting next version by @GuillaumeGomez in #669
  • derive: allow where bounds in #[filter_fn] by @Kijewski in #672
  • [Book] Improve filters chapter by @Tirka in #673
  • [Book] Use more current markdown syntax for fragment links by @Kijewski in #658
  • [Book] Improve filters chapter examples (by making us of defined_or filter) by @Tirka in #675

New Contributors

Full Changelog: v0.15.1...v0.15.2

v0.15.1

28 Dec 19:34
04436eb

Choose a tag to compare

What's Changed

  • Fix broken intra-doc links by @GuillaumeGomez in #645
  • Fix missing mutability information in generated filters by @GuillaumeGomez in #646
  • Fix clippy false positives by using call_site for code generated by the derive proc-macro by @sehnryr in #647
  • Add support for lifetimes in filters by @GuillaumeGomez in #649

New Contributors

  • @sehnryr made their first contribution in #647

Full Changelog: v0.15.0...v0.15.1

v0.15.0

22 Dec 19:58
b251aeb

Choose a tag to compare

The main breaking change is about custom filters, they now require the filter_fn attribute. More information about it in the askama book.

(❗ = breaking change)

New features

Major internal changes

Improve error location to give better errors:

Other

  • filesizeformat with proper accuracy❗ by @seijikun in #568
  • Filters linebreaks, paragraphbreaks and linebreaksbr only need core by @Kijewski in #486
  • Emit an error if an extends block doesn't come first in a template by @GuillaumeGomez in #584

Book/documentation

Internal changes

Performance

  • Add missing #[inline] annotations by @Kijewski in #421
  • parser: un-inline error message generation by @Kijewski in #501
  • Refactor indent Filter Implementation by @strickczq in #466
  • Make wordcount filter work with core only by @GuillaumeGomez in #480
  • derive: un-inline Expr::Call handling for {{ expressions }} and remove parentheses by @Kijewski in #540
  • parser/derive: replaces usages of Expr/Node with Box<Expr>/Box<Node> by @Kijewski in #542
  • parser: remove one indirection in punction() finding by @Kijewski in #543
  • filter_fn: Aggressive inlining for builder invocation methods by @seijikun in #616
  • loop.first is known by being at index == 0 by @Kijewski in #436

Bugfixes

  • generator: remove invisible group from output by @Kijewski in #419
  • Relax Sized constraint on impl FastWritable for Cow by @C0D3-M4513R in #432
  • Ignore fuzzing corpus from source line count by @Kijewski in #433
  • Use unicode-ident to determine what is an identifier by @Kijewski in #443
  • derive: prefix more generated variables with __askama by @Kijewski in #444
  • derive: don't suppress fatal errors in integer parsing by @Kijewski in #448
  • Print invalid generated code during panic by @Kijewski in #446
  • Prevent crate to be used as identifier by @GuillaumeGomez in #450
  • Comparison operators cannot be chained by @Kijewski in #457
  • Correctly escape and reject macro names by @Kijewski in #460
  • parser: macro calls need proper tokens by @Kijewski in #468
  • Resolve with macro with call after caller by @pollend in #469
  • parser: recognize/reject prefixed ids and lits in macro calls by @Kijewski in #476
  • parser: reject illegal string literals by @Kijewski in #479
  • Rename LoopItem::index to LoopItem::index0 by @Kijewski in #481
  • parser: reject isolated CRs in string literals by @Kijewski in #483
  • parser: better error message for bare CRs by @Kijewski in #485
  • parser: U+10FFFF is the highest Unicode codepoint by @Kijewski in #484
  • parser: recognize comments in macro calls by @Kijewski in #487
  • parser: implement {% raw %} and Lit::parse() without skip_till by @Kijewski in #489
  • parser: fix {% raw %} for delimiters starting with - by @Kijewski in #491
  • parser: string literal must not be immediately followed by suffix# by @Kijewski in #496
  • parser: reject illegal raw identifiers in attribute access & ensure valid paths in generics by @Kijewski in #497
  • parser: understand nested block comments in macro calls by @Kijewski in #504
  • Fix panic when using include in call block by @seijikun in #516
  • parser: fix check_expr() recursion by @Kijewski in #519
  • parser: reject isolated CR in macro inputs, too by @Kijewski in #524
  • parser: reject bare CR in doc comments by @Kijewski in #526
  • Fix fuzzing macro argument parsing bug by @GuillaumeGomez in #530
  • derive: make EvaluatedResult know its unknown result by @Kijewski in #538
    ...
Read more

v0.14.0

23 Apr 15:56
95867ac

Choose a tag to compare

Added Features

Bug Fixes And Consistency

Further Changes

New Contributors

Full Changelog: v0.13.0...v0.14.0

v0.13.1

15 Apr 13:47
0b1c0e4

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.13.0...v0.13.1

rinja/v0.4.0+deprecated

29 Mar 17:54

Choose a tag to compare

New versions of rinja will be released under the name askama. Please update your dependencies from e.g. rinja = "0.3.5" to
askama = "0.13.0".

Useful information can be found in our upgrade guide, and in our blog post.