<feed xmlns='http://www.w3.org/2005/Atom'>
<title>askama/askama_escape, branch main</title>
<subtitle>added poem support</subtitle>
<link rel='alternate' type='text/html' href='https://bunny.garden/forks/askama/'/>
<entry>
<title>Advertise Discord channel instead of Gitter</title>
<updated>2023-10-03T15:39:03+00:00</updated>
<author>
<name>Dirkjan Ochtman</name>
<email>dirkjan@ochtman.nl</email>
</author>
<published>2023-10-03T08:39:56+00:00</published>
<link rel='alternate' type='text/html' href='https://bunny.garden/forks/askama/commit/?id=a6bc14c8ca5a4e5c6ac297a7fa95f86c722b799c'/>
<id>a6bc14c8ca5a4e5c6ac297a7fa95f86c722b799c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add MSRV checking in CI</title>
<updated>2023-09-29T14:13:24+00:00</updated>
<author>
<name>Dirkjan Ochtman</name>
<email>dirkjan@ochtman.nl</email>
</author>
<published>2023-09-29T12:02:11+00:00</published>
<link rel='alternate' type='text/html' href='https://bunny.garden/forks/askama/commit/?id=daa8d89b579f9a319e2bd9c59576e1d8ac76365e'/>
<id>daa8d89b579f9a319e2bd9c59576e1d8ac76365e</id>
<content type='text'>
Bump MSRV to 1.65 for the use of let .. else.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bump MSRV to 1.65 for the use of let .. else.
</pre>
</div>
</content>
</entry>
<entry>
<title>escape: simplify literals as suggested by clippy</title>
<updated>2023-08-25T11:22:05+00:00</updated>
<author>
<name>Dirkjan Ochtman</name>
<email>dirkjan@ochtman.nl</email>
</author>
<published>2023-08-25T07:28:20+00:00</published>
<link rel='alternate' type='text/html' href='https://bunny.garden/forks/askama/commit/?id=c96fd996bb61f1b65196187ca6774fd6ab4a17b6'/>
<id>c96fd996bb61f1b65196187ca6774fd6ab4a17b6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update criterion requirement from 0.4 to 0.5</title>
<updated>2023-05-24T07:47:44+00:00</updated>
<author>
<name>dependabot[bot]</name>
<email>49699333+dependabot[bot]@users.noreply.github.com</email>
</author>
<published>2023-05-24T04:58:55+00:00</published>
<link rel='alternate' type='text/html' href='https://bunny.garden/forks/askama/commit/?id=a3ff30a5eaca6ffcf82dd152affef4725acf0aa8'/>
<id>a3ff30a5eaca6ffcf82dd152affef4725acf0aa8</id>
<content type='text'>
Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs) to permit the latest version.
- [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)

---
updated-dependencies:
- dependency-name: criterion
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] &lt;support@github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs) to permit the latest version.
- [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)

---
updated-dependencies:
- dependency-name: criterion
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] &lt;support@github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Use lookup table</title>
<updated>2023-03-30T12:49:15+00:00</updated>
<author>
<name>René Kijewski</name>
<email>rene.kijewski@fu-berlin.de</email>
</author>
<published>2023-03-30T12:12:15+00:00</published>
<link rel='alternate' type='text/html' href='https://bunny.garden/forks/askama/commit/?id=3b830b0fee51306f0100bb27292fd8dd09bf08f3'/>
<id>3b830b0fee51306f0100bb27292fd8dd09bf08f3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Escape HTML faster</title>
<updated>2023-03-30T12:49:15+00:00</updated>
<author>
<name>René Kijewski</name>
<email>rene.kijewski@fu-berlin.de</email>
</author>
<published>2023-03-30T04:28:26+00:00</published>
<link rel='alternate' type='text/html' href='https://bunny.garden/forks/askama/commit/?id=6daf343e8b1b99cb776e244f9f8e658e1887e633'/>
<id>6daf343e8b1b99cb776e244f9f8e658e1887e633</id>
<content type='text'>
Escaped HTML characters vary in length. So, in order to select the
correct replacement two variables need to be loaded: The pointer to the
new substring and its length. Because of this the generated code is less
dense than it could be.

With this PR instead of selecting the appropriate `&amp;str`, an `&amp;&amp;str` is
selected. The former consumes two words while the latter consumes only
one. Intuitively one might assume that the double dereference makes the
code slower, but the optimized lookup seems to be so much faster, so
that the change is worth its weight.

Comparing the result of `cargo bench` (best out of three runs for both):

```text
Old:  [4.3592 µs 4.3675 µs 4.3764 µs]
New:  [3.8691 µs 3.8766 µs 3.8860 µs]
Diff: [-11.24 %  -11.24 %  -12.21 % ]
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Escaped HTML characters vary in length. So, in order to select the
correct replacement two variables need to be loaded: The pointer to the
new substring and its length. Because of this the generated code is less
dense than it could be.

With this PR instead of selecting the appropriate `&amp;str`, an `&amp;&amp;str` is
selected. The former consumes two words while the latter consumes only
one. Intuitively one might assume that the double dereference makes the
code slower, but the optimized lookup seems to be so much faster, so
that the change is worth its weight.

Comparing the result of `cargo bench` (best out of three runs for both):

```text
Old:  [4.3592 µs 4.3675 µs 4.3764 µs]
New:  [3.8691 µs 3.8766 µs 3.8860 µs]
Diff: [-11.24 %  -11.24 %  -12.21 % ]
```
</pre>
</div>
</content>
</entry>
<entry>
<title>Apply clippy suggestions for 1.67 (#769)</title>
<updated>2023-01-30T08:51:23+00:00</updated>
<author>
<name>Dirkjan Ochtman</name>
<email>dirkjan@ochtman.nl</email>
</author>
<published>2023-01-30T08:51:23+00:00</published>
<link rel='alternate' type='text/html' href='https://bunny.garden/forks/askama/commit/?id=3003d86264680433e789d2726d0d12d2c6267c40'/>
<id>3003d86264680433e789d2726d0d12d2c6267c40</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update criterion requirement from 0.3 to 0.4 (#721)</title>
<updated>2022-09-26T13:46:12+00:00</updated>
<author>
<name>dependabot[bot]</name>
<email>49699333+dependabot[bot]@users.noreply.github.com</email>
</author>
<published>2022-09-26T13:46:12+00:00</published>
<link rel='alternate' type='text/html' href='https://bunny.garden/forks/askama/commit/?id=f88403430bd1f998a1688bf8329ba5071904219b'/>
<id>f88403430bd1f998a1688bf8329ba5071904219b</id>
<content type='text'>
Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs) to permit the latest version.
- [Release notes](https://github.com/bheisler/criterion.rs/releases)
- [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bheisler/criterion.rs/compare/0.3.0...0.4.0)

---
updated-dependencies:
- dependency-name: criterion
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] &lt;support@github.com&gt;

Signed-off-by: dependabot[bot] &lt;support@github.com&gt;
Co-authored-by: dependabot[bot] &lt;49699333+dependabot[bot]@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs) to permit the latest version.
- [Release notes](https://github.com/bheisler/criterion.rs/releases)
- [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bheisler/criterion.rs/compare/0.3.0...0.4.0)

---
updated-dependencies:
- dependency-name: criterion
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] &lt;support@github.com&gt;

Signed-off-by: dependabot[bot] &lt;support@github.com&gt;
Co-authored-by: dependabot[bot] &lt;49699333+dependabot[bot]@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Remove `unsafe { … }` code from askama_escape</title>
<updated>2022-04-13T11:18:27+00:00</updated>
<author>
<name>René Kijewski</name>
<email>kijewski@library.vetmed.fu-berlin.de</email>
</author>
<published>2022-04-13T09:50:10+00:00</published>
<link rel='alternate' type='text/html' href='https://bunny.garden/forks/askama/commit/?id=fc779e22c3bfa0e94df208a88a361b99e28a9129'/>
<id>fc779e22c3bfa0e94df208a88a361b99e28a9129</id>
<content type='text'>
Using only safe code is actually same as fast as the previous "unsafe"
code according to the crate's benchmark.

The code was extracted from [markup]'s escape function in [escape.rs],
written by Utkarsh Kukreti &lt;utkarshkukreti@gmail.com&gt;, licensed as
`MIT OR Apache-2.0`.

[markup]: https://crates.io/crates/markup
[escape.rs]: https://github.com/utkarshkukreti/markup.rs/blob/8ec40428483790b2c296e907e7be4147b157fe8f/markup/src/escape.rs#L1-L21
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Using only safe code is actually same as fast as the previous "unsafe"
code according to the crate's benchmark.

The code was extracted from [markup]'s escape function in [escape.rs],
written by Utkarsh Kukreti &lt;utkarshkukreti@gmail.com&gt;, licensed as
`MIT OR Apache-2.0`.

[markup]: https://crates.io/crates/markup
[escape.rs]: https://github.com/utkarshkukreti/markup.rs/blob/8ec40428483790b2c296e907e7be4147b157fe8f/markup/src/escape.rs#L1-L21
</pre>
</div>
</content>
</entry>
<entry>
<title>Increment patch versions of askama_{shared,escape}</title>
<updated>2022-02-16T13:51:39+00:00</updated>
<author>
<name>René Kijewski</name>
<email>kijewski@library.vetmed.fu-berlin.de</email>
</author>
<published>2022-02-16T13:30:17+00:00</published>
<link rel='alternate' type='text/html' href='https://bunny.garden/forks/askama/commit/?id=5a141ef414f92070ae9d51427b9e6eaecfbbd810'/>
<id>5a141ef414f92070ae9d51427b9e6eaecfbbd810</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
