21 Commits

Author SHA1 Message Date
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