185 Commits

Author SHA1 Message Date
Dirkjan Ochtman
ff24eef1ff Move Iron integration into a separate askama_iron crate 2020-01-29 09:25:59 +01:00
Dirkjan Ochtman
75f32d3967 Move Gotham integration into separate askama_gotham crate 2020-01-29 09:25:59 +01:00
Dirkjan Ochtman
c6f9a053c7 Move Rocket integration into askama_rocket crate 2020-01-29 09:25:59 +01:00
Dirkjan Ochtman
b56c11639f Move Actix-Web integration into separate askama_actix crate 2020-01-29 09:25:59 +01:00
Dirkjan Ochtman
9026f616e6 Disable Gotham's default features 2020-01-27 12:25:57 +01:00
Dirkjan Ochtman
8579a8ee68 Disable rocket's default features 2020-01-27 11:46:49 +01:00
Dirkjan Ochtman
6360ea517d Add new templates 2020-01-12 16:28:26 +01: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
8cc20486c7 Write conditional blocks before popping variable stack (see #227) 2020-01-12 15:44:49 +01:00
Tuomas Siipola
80148aa753 Support escaping in string literals
Do not attempt to parse escape sequences thoroughly. Instead let the
Rust compiler to check the string literals and provide nice error
messages if necessary.
2020-01-12 08:15:04 +01:00
DCjanus
6b11df9e92 upgrade dependencies(actix-web 0.7 -> 2) 2020-01-11 17:43:55 +01:00
Tuomas Siipola
cef055108d Support char literals 2020-01-03 19:56:18 +01:00
Dirkjan Ochtman
ea2034e806 Clean up clippy warnings 2020-01-02 22:58:13 +01:00
Dirkjan Ochtman
ebf99e6628 Fix formatting with cargo fmt 2019-11-04 14:00:26 +01:00
jbg
e0f60ca8dd Moved no-receiver size_hint method to a separate trait (#270) 2019-10-28 15:45:36 +01:00
Dirkjan Ochtman
f230c78926 Reformat test for better readability 2019-10-09 11:47:07 +02:00
Dirkjan Ochtman
8c56de1e69 Limit test sensitivity to macro pretty printing output
See https://github.com/rust-lang/rust/issues/65207.
2019-10-09 11:45:13 +02:00
Dave Poulter
c82db307b0 Add support for boolean literals 2019-10-08 11:36:19 +02:00
dependabot-preview[bot]
66274b7c8e Update criterion requirement from 0.2 to 0.3
Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs) to permit the latest version.
- [Release notes](https://github.com/bheisler/criterion.rs/releases)
- [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bheisler/criterion.rs/compare/0.2.0...0.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-26 09:48:52 +02:00
Pavel Fokin
e29792e90c WIP: Add raw block 2019-04-18 09:38:39 +02:00
Steven Pease
d1b47f8908 Default to UTF-8 mime type for actix-web and gotham 2019-03-18 10:53:59 +01:00
Dirkjan Ochtman
9a12888da6 Move small templates into source code 2019-03-18 10:26:47 +01:00
Dirkjan Ochtman
703ab6e3c7 Remove second example for templates in templates 2019-03-18 10:21:34 +01:00
Vicente Ramirez Perea
d9ee26bfa2 Fmt 2019-03-18 10:19:48 +01:00
Vicente Ramirez Perea
d59f5d7c1a Fmt and complete test avoiding warning unused variant. 2019-03-18 10:19:48 +01:00
Vicente Ramirez Perea
5b2e9cf992 Documenting feature render in template 2019-03-18 10:19:48 +01:00
Dirkjan Ochtman
e89eee3ffc Remove debugging cruft 2019-03-18 10:12:42 +01:00
Dirkjan Ochtman
cdaf7ea35d Create heritage for extends-only templates (fixes #224) 2019-03-18 10:06:01 +01:00
Dirkjan Ochtman
23ff7ad636 Simplify actix-web implementations 2019-02-20 20:43:40 +01:00
Dirkjan Ochtman
292bf7baed Allow referencing self as a variable (fixes #207) 2019-02-20 20:41:17 +01:00
Zizheng Tai
bf9e7cc049 Add TemplateResponder trait for integration with actix-web 2019-02-20 16:18:23 +01:00
Maarten de Vries
b3c1fc1a8e Remove rerun_if_templates_changed and update README. 2019-01-11 16:30:51 +01:00
yossyJ
df07f7f5e3 Add support for loop.last 2019-01-08 15:59:45 +01:00
yossyJ
c5c37f56a1 Allow trailing commas in tuples (#188) 2019-01-08 15:57:45 +01:00
yossyJ
bef88f1696 Add support for tuple 2019-01-04 16:58:09 +01:00
Juan Aguilar Santillana
39e08325c0 fix rust macro arguments 2018-12-13 09:32:03 +01:00
mcarton
48c5ebbd2b Allow using brackets for enums in match 2018-12-12 21:48:41 +01:00
Kellen Frodelius-Fujimoto
9e1cf8f0df Add Gotham tests to full feature in testing crate 2018-12-10 22:29:24 +01:00
Kellen Frodelius-Fujimoto
9b0001cdf3 Implement IntoResponse for Template, allowing them to be used in gotham handlers. 2018-12-10 22:29:24 +01:00
Dirkjan Ochtman
5549f9a3cd Use 2018 edition idioms 2018-12-08 21:43:20 +01:00
Dirkjan Ochtman
d042c5d758 Upgrade to 2018 edition 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
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