143 Commits

Author SHA1 Message Date
Dirkjan Ochtman
cf8dc532f0 Remove unused macro_use attributes 2018-12-08 21:43:20 +01:00
Dirkjan Ochtman
b18664fe9f Upgrade to Rocket 0.4 2018-12-08 21:43:20 +01:00
Juan Aguilar Santillana
cdafc8d641 Fix cargo fmt 2018-12-07 20:18:16 +01:00
Dirkjan Ochtman
e7fde0733b Move escaping benchmarks into askama_escape crate 2018-11-14 16:18:19 +01:00
bott
a899561db2 Add e2e test for escape 2018-11-11 22:39:22 +01:00
bott
2721c44a20 Add bench for escaping 2018-11-05 21:03:31 +01:00
Dirkjan Ochtman
6c442903c6 Disable tests that need dependencies by default 2018-11-04 22:36:45 +01:00
Yusuke Sasaki
82a406df79 use UFCS in derived code 2018-11-04 22:14:11 +01:00
Dirkjan Ochtman
efe621195e Remove unused #[macro_use] attribute 2018-11-04 22:10:09 +01:00
Qian Linfeng
5be6479f2c Add test for unescaped variable expressions (see #132) 2018-10-20 20:34:47 +02:00
Yusuke Sasaki
1f11e7133d make Template::extension() static
It is useful for calculating the media type without instantiating
the context value.
2018-10-12 14:18:12 +02:00
Dirkjan Ochtman
ca6706711e Fix formatting 2018-10-08 11:12:57 +02:00
Dirkjan Ochtman
35e241f429 Clean up warning about unused field 2018-10-08 10:40:20 +02:00
bott
28d7696408 Add Rust macro support at templates 2018-10-07 17:26:08 +02:00
bott
94bb47a78d fix panicked on range-based for loop 2018-09-21 13:42:56 +02:00
Dirkjan Ochtman
ba91884d76 Update formatting for rust 1.29.0 rustfmt 2018-09-14 13:44:33 +02:00
bott
0711e3667b Fix operator preference at loop.index 2018-09-14 13:15:41 +02:00
bott
c0f9fe973e Fix operator preference at loop.first 2018-09-14 13:15:41 +02:00
bott
4f2176a3ad Fix deep nested imports in macro calls 2018-09-07 20:09:52 +02:00
bott
dfb7cea037 Fix multiple nesting in macro calls into different scopes 2018-09-02 19:02:22 +02:00
bott
f29c12f469 Add test for nested macro calls into different scope 2018-09-02 16:01:20 +02:00
Dirkjan Ochtman
7a994eb95b Work around conflicting dependencies for actix-web and rocket 2018-07-22 15:47:31 +01:00
Dirkjan Ochtman
8a25a1ee65 Add Template method to return template extension
Thanks to Ryan McGrath for the suggestion and initial implementation.
2018-07-22 14:59:56 +01:00
Ryan McGrath
ed98793b50 Tests for actix_web 2018-07-22 14:47:29 +01:00
Dirkjan Ochtman
9d2c6115dc Add test for unit structs (see #101) 2018-07-04 09:41:10 +02:00
Dirkjan Ochtman
3011a7ff16 Remove accidentally committed debugging cruft 2018-07-02 09:48:38 +02:00
Dirkjan Ochtman
ec2e873d73 Fix formatting with cargo fmt 2018-07-02 09:28:02 +02:00
Dirkjan Ochtman
970e3ecfbd Add benchmarks to the Askama repo 2018-06-28 17:01:12 +02:00
Dirkjan Ochtman
c44869d7c6 Add test for 'truncate' filter 2018-06-25 14:46:07 +02:00
Dirkjan Ochtman
9a3c57ac34 Add test for 'loop.first' variable 2018-06-25 12:46:13 +02:00
Dirkjan Ochtman
19bcb0f50e Add test for range operators 2018-06-23 18:18:50 +02:00
Dirkjan Ochtman
c52ea242dc Remove accidental debugging cruft 2018-06-23 18:16:00 +02:00
Dirkjan Ochtman
9f34349cba Add test for Index operation 2018-06-23 17:07:53 +02: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
3ba47e3fba Reformat and rename method testing tests for better organization 2018-05-27 10:03:40 +02:00
Mika Lehtinen
0330699a33 Add tests for calling methods on self 2018-05-27 09:44:53 +02:00
Dirkjan Ochtman
09eeaf8699 Remove forgotten debugging cruft 2018-05-21 15:34:39 +02:00
Dirkjan Ochtman
39ce506163 Forgot to add new test templates 2018-05-21 14:25:39 +02:00
Dirkjan Ochtman
60950c97de Add support for nested blocks (fixes #85) 2018-05-20 21:05:58 +02:00
Dirkjan Ochtman
730a2ea666 Add test for unary - operator 2018-04-27 13:47:35 +02:00
Dirkjan Ochtman
cbea9814d2 Add test for ! operator (see #83) 2018-04-27 13:44:31 +02:00
Dirkjan Ochtman
76b99dfc7d Add test for filter in let statement 2018-04-19 14:32:19 +02:00
Dirkjan Ochtman
8d8374a10f Properly handle whitespace around comments (fixes #79) 2018-04-17 17:34:44 +02:00
Dirkjan Ochtman
02266bed68 Add test for nested filters with references (see #76) 2018-04-17 17:16:24 +02:00
Dirkjan Ochtman
e46e2d6b02 Handle a lack of whitespace after match block (fixes #76) 2018-04-12 19:49:51 +02:00
Dirkjan Ochtman
c023c35a1a Fix whitespace handling for include blocks (fixes #69) 2018-04-02 21:31:46 +02:00