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
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
Hajime Fukuda
8f216fed4c
infer Content-type from the file extension for iron integration
2018-01-19 12:48:17 +01: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
Anthony Nowell
2257afd356
Support matching custom enums
2017-11-02 15:11:20 +01:00
Anthony Nowell
89a90eb46c
Make match ref/deref as needed
...
Much of this can be yanked out and made simpler
when match-modes lands in stable
2017-11-02 15:01:10 +01:00
Anthony Nowell
cc51d201ab
support literals in match arms
2017-11-02 14:58:46 +01:00
Anthony Nowell
468f376bfc
implement basic match functionality
2017-11-02 14:55:10 +01:00
Dirkjan Ochtman
14beb21d0c
Make empty string literals work
2017-10-22 14:26:38 +02:00
Dirkjan Ochtman
4af73a868c
Add support for array literals ( fixes #59 )
2017-10-20 10:09:50 +02:00
Dirkjan Ochtman
4bd89aa693
Add test for path expressions (see #56 )
2017-10-04 21:09:02 +02:00
larros
614ed6d16f
Fix whitespace handling for macros and imports ( #55 )
...
Resolves https://github.com/djc/askama/issues/52 .
* Fix of review comments
2017-10-01 18:00:05 +02:00
larros
df58dcb49d
Add support for importing template files with macros ( #51 )
...
* Fix review comments for macro imports
2017-09-26 10:02:44 +02:00
Lars Erik Rosengren
4e919e4753
Add support for tuple indexing in templates
2017-09-10 20:15:15 +02:00
Dirkjan Ochtman
7c29bf765f
Extend escaping according to OWASP recommendations
2017-09-07 20:42:55 +02:00
Dirkjan Ochtman
e559ed4210
Move JSON test into filters test module
2017-09-07 20:42:54 +02:00
Dirkjan Ochtman
07e9b307c8
Move escaping tests into a separate module
2017-09-07 20:42:54 +02:00
Dirkjan Ochtman
92d93e0e8b
Add test case for inferred escape mode
2017-09-07 20:42:54 +02:00
Dirkjan Ochtman
ee9db1dbf4
Make ext attribute mandatory for source-specified templates
2017-09-07 20:42:54 +02:00
Dirkjan Ochtman
7203fac07c
Add some tests for escaping functionality
2017-09-05 20:34:32 +02:00
Dirkjan Ochtman
32a9dd5f2e
Moved precedence test into operators module
2017-09-04 20:31:28 +02:00
Lars Erik Rosengren
986535fc95
Changed implementation of precedence rules
...
This implementation resolves djc/askama#44 by changing the precedence
implementation.
The previous solution was very slow because it had to try to parse
all combinations of precedence layers leading to 2^9 iterations for each
expr_any. This is solved by reusing the left operand instead of reparsing
it when the operator isn't found.
This implementation also solves another related issue that expressions
with multiple operators couldn't be parsed, for example {{1 * 2 * 3}}.
This is handled by using expr_any for the right operand instead of only
using higher level precedence layers.
2017-09-03 19:08:53 +02:00
defyrlt
7d2d7718aa
Add join
filter & tests for it
2017-09-02 13:34:52 +02:00
Bastien Orivel
aeac47cee0
Add test for parent default block implementations
2017-08-25 13:29:34 +02:00
Dirkjan Ochtman
201a2cb2a2
Simplify Rocket test slightly
2017-08-24 20:47:24 +02:00
Dirkjan Ochtman
c8b14c6d0d
Add test case for user-defined filters
2017-08-24 20:22:32 +02:00
Dirkjan Ochtman
e030066106
Add test for Rocket support
2017-08-23 20:55:45 +02:00
Dirkjan Ochtman
40775d8c88
Add test for Iron support
2017-08-23 20:43:11 +02:00
Dirkjan Ochtman
57a10a789e
Forgot to remove debugging cruft, again
2017-08-23 12:43:53 +02:00
Anthony Nowell
2d6785b714
Adding optional json filter
2017-08-23 12:40:14 +02:00
Dirkjan Ochtman
d0a3d51dcd
Add test for basic macro use
2017-08-22 20:22:33 +02:00
Dirkjan Ochtman
4f4b5a3a65
Change one test case to use source attribute
2017-08-16 21:04:52 +02:00
Dirkjan Ochtman
d7ac0825e0
Add test for variable declaration
2017-08-16 12:51:11 +02:00
Dirkjan Ochtman
fb11c175b2
Add test for let blocks
2017-08-15 07:47:02 +02:00
Dirkjan Ochtman
cd685eefb4
Disable debug output for example by default
2017-08-10 12:52:31 +02:00
Dirkjan Ochtman
e8c47b7135
Add README example as a test case
2017-08-10 12:37:01 +02:00
Dirkjan Ochtman
cece25b0be
Implement Display for all Templates
2017-08-10 09:51:48 +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