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 |
|
Paul Woolcock
|
0bc3881450
|
build = "build.rs" is no longer necessary
For all rust versions >= 1.19, cargo will assume `build = "build.rs"` if it sees a `build.rs` file in the same directory as the `Cargo.toml`
|
2018-01-29 16:11:50 +01:00 |
|
Hajime Fukuda
|
8f216fed4c
|
infer Content-type from the file extension for iron integration
|
2018-01-19 12:48:17 +01:00 |
|
Hajime Fukuda
|
dbea8955b7
|
relax the version specification
|
2018-01-05 20:16:06 +09: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 |
|