31 Commits

Author SHA1 Message Date
Guillaume Gomez
3b52c907c3 Rename rinja into askama 2025-03-11 19:31:06 +01:00
Guillaume Gomez
6e13c81a5f Move types into their tests 2024-11-09 22:22:42 +01:00
René Kijewski
ee3a9e675a Add .rustfmt.toml configuration
This PR configures the formatting with a few defaults that aid
readability, in my opinion. One drawback of adding this file is that
rustfmt uses unstable features, now, and you have to use nightly to run
it:

```sh
cargo +nightly fmt --all
```
2024-07-04 07:05:57 +02:00
Guillaume Gomez
2d80cc3524 Rename everything to rinja 2024-06-17 15:58:52 +02:00
Guillaume Gomez
4d237ab274 Fix new rustc lints 2024-05-16 13:47:02 +02:00
Guillaume Gomez
cefa443839 Remove "unused type" warnings in tests 2024-05-02 20:34:12 +02:00
Guillaume Gomez
a7f5186bf4 Add test specifically for named blocks, and named macros 2023-10-23 15:13:27 +02:00
René Kijewski
16a37f4097 Remove support for deprecated _parent field
The support for the magic `_parent` field is deprecated since v0.8.0
or issue #180. It's bothersome to keep this feature alive, when no-one
should be using it for 3 years.
2022-07-25 11:41:04 +02:00
Dirkjan Ochtman
0f90ab83d6 Improve spacing 2020-01-12 16:07:35 +01:00
Dirkjan Ochtman
5c4896acf4 Add test for let declarations in blocks 2020-01-12 16:06:42 +01:00
Dirkjan Ochtman
cdaf7ea35d Create heritage for extends-only templates (fixes #224) 2019-03-18 10:06:01 +01:00
Dirkjan Ochtman
5549f9a3cd Use 2018 edition idioms 2018-12-08 21:43:20 +01:00
Dirkjan Ochtman
cf8dc532f0 Remove unused macro_use attributes 2018-12-08 21:43:20 +01:00
Dirkjan Ochtman
81141178a6 Add test for 'super' macro 2018-06-22 20:26:09 +02:00
Dirkjan Ochtman
457ecee075 Fix formatting with cargo fmt 2018-06-22 16:23:20 +02:00
Dirkjan Ochtman
b641f70adc Add test for flattened deep inheritance 2018-06-22 16:20:49 +02:00
Dirkjan Ochtman
3d75bcfe78 Add test for deep inheritance 2018-06-22 16:13:08 +02:00
Dirkjan Ochtman
31b90ccc65 Fix formatting with cargo fmt 2018-06-21 12:19:54 +02:00
Dirkjan Ochtman
09eeaf8699 Remove forgotten debugging cruft 2018-05-21 15:34:39 +02:00
Dirkjan Ochtman
60950c97de Add support for nested blocks (fixes #85) 2018-05-20 21:05:58 +02:00
Dirkjan Ochtman
b076422562 Add test case for cross-module inheritance 2017-12-25 12:30:27 +01:00
Dirkjan Ochtman
83cc6e0ca3 Apply suggestions from rustfmt to improve style 2017-11-21 20:57:56 +01:00
Bastien Orivel
aeac47cee0 Add test for parent default block implementations 2017-08-25 13:29:34 +02:00
Dirkjan Ochtman
1e0ee705a8 Propagate format errors and rename render_to() to render_into() 2017-08-10 09:27:33 +02:00
Dirkjan Ochtman
b7446b744a Add test for deref implementation (see #28) 2017-08-08 12:36:29 +02:00
Dirkjan Ochtman
664398b225 Hide askama_derive dependency inside askama (fixes #2) 2017-03-06 22:40:04 +01:00
Dirkjan Ochtman
aa98f61fa7 Discard trailing newlines from templates by default
This matches Jinja's behavior, and seems sensible.
2017-03-03 16:44:54 +01:00
Dirkjan Ochtman
3b70780340 Test support for variables in inherited templates 2017-02-12 20:42:43 +01:00
Dirkjan Ochtman
c74e9e8971 Explicitly pass trait implementation to top-level base template method
This requires a base template struct to be a member of the derived template's
context, but allows the base template to access base template fields.
2017-02-12 20:38:14 +01:00
Dirkjan Ochtman
4691cf3559 Add test for using base template directly 2017-02-12 12:06:18 +01:00
Dirkjan Ochtman
723567ba0c Implement basic support for template inheritance 2017-02-05 15:18:47 +01:00