630 Commits

Author SHA1 Message Date
Dirkjan Ochtman
6a2cff0ab6 Tweak metadata for new askama_escape crate 2018-11-07 21:37:07 +01:00
Dirkjan Ochtman
349b3c2612 Simplify whitespace handling in expression code generation 2018-11-07 21:37:07 +01:00
Dirkjan Ochtman
460079e347 Clean up unused features 2018-11-07 21:37:07 +01:00
Tomas
93884b7fbe Update generated code example 2018-11-07 20:13:11 +01:00
Tomas
471654dd94 Fix generated code format 2018-11-07 20:13:11 +01:00
bott
8224f06f3e Create askama_escape crate 2018-11-07 17:58:13 +01:00
Dirkjan Ochtman
2e028ed903 Reorder and tweak code style a little bit 2018-11-05 21:03:31 +01:00
bott
99abc3e303 Improve performance simplify 2018-11-05 21:03:31 +01:00
Dirkjan Ochtman
57dc7ef9ca Escape into Formatter 2018-11-05 21:03:31 +01:00
bott
2ef8258e8f Improve performance of html escape 2018-11-05 21:03:31 +01:00
bott
2721c44a20 Add bench for escaping 2018-11-05 21:03:31 +01:00
Tomas
962c24eaed Add f64 filter 2018-11-05 20:24:39 +01:00
Tomas
1b3c5a8696 Add isize filter 2018-11-05 20:24:39 +01:00
Dirkjan Ochtman
31dfd81cca Send debug output to stderr instead of stdout 2018-11-05 14:36:22 +01:00
Dirkjan Ochtman
6c442903c6 Disable tests that need dependencies by default 2018-11-04 22:36:45 +01:00
Dirkjan Ochtman
8edf5dea2a Use nightly channel 2018-11-04 22:36:03 +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
bott
940f90bea6 Improve bench with writable buffer for generate format string of write! argument 2018-10-29 12:53:53 +01:00
bott
83af269785 Improve bench with literals buffer for optimize ws writer 2018-10-27 19:52:51 +02:00
bott
76d29eb591 Improve bench reducing the number of calls to writer.write_str 2018-10-26 03:55:53 +02:00
Benjamin Li
7062aabbcb Fix off-by-one error with HTML escaping
If the second-to-last character of a string should be escaped,
but not the last, the last character was not being included in the
result.
2018-10-25 21:41:40 +02:00
Qian Linfeng
5be6479f2c Add test for unescaped variable expressions (see #132) 2018-10-20 20:34:47 +02:00
Dirkjan Ochtman
4fa029f26f Take reference of unescaped expressions directly (fixes #132) 2018-10-20 20:34:47 +02:00
Casey Rodarmor
5ffe3de311 Replace format!() with to_string() in filters 2018-10-17 11:14:27 +02:00
Casey Rodarmor
65e13033e1 Add indent filter 2018-10-17 11:14:27 +02:00
Dirkjan Ochtman
d48bd54bbe Fix dependency version 2018-10-12 14:38:33 +02:00
Dirkjan Ochtman
39e807d94d Bump version number to 0.8.0 for API change 2018-10-12 14:21:53 +02:00
Dirkjan Ochtman
3c30d3a396 Remove default implementation for extension() 2018-10-12 14:20:55 +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
2e0f7fb497 Tweak and update feature highlights in README 0.7.2 2018-10-08 11:36:29 +02:00
Dirkjan Ochtman
bdf4e29293 Bump version to 0.7.2 2018-10-08 11:32:49 +02:00
Dirkjan Ochtman
ba07e63ea4 Clean up Travis config and check formatting 2018-10-08 11:28:41 +02:00
Dirkjan Ochtman
54a106ca16 Remove periods from documentation sentence fragments 2018-10-08 11:22:43 +02:00
Dirkjan Ochtman
5d8ccc9acf Add docs.rs badge to README 2018-10-08 11:18:21 +02:00
Dirkjan Ochtman
ca6706711e Fix formatting 2018-10-08 11:12:57 +02:00
Dirkjan Ochtman
4498ddd445 Move default_syntax setting into general section 2018-10-08 10:55:55 +02:00
Dirkjan Ochtman
35e241f429 Clean up warning about unused field 2018-10-08 10:40:20 +02:00
Dirkjan Ochtman
a6a36343e9 Tweak custom syntax documentation some more 2018-10-08 09:49:24 +02:00
bott
833983ffe1 Add changing delimiters documentation 2018-10-08 09:40:20 +02:00
bott
28d7696408 Add Rust macro support at templates 2018-10-07 17:26:08 +02:00
Dirkjan Ochtman
9edf27d944 Improve variable name to better reflect its type 2018-10-07 07:37:46 +02:00
Dirkjan Ochtman
e1497adb50 Handle syntax validation during Config instantiation 2018-10-07 07:37:46 +02:00
Dirkjan Ochtman
6e6691b06b Remove unnecessary type declaration 2018-10-07 07:37:46 +02:00
Dirkjan Ochtman
a7d4cc0670 Tweak error messages for language, consistency 2018-10-07 07:37:46 +02:00
Dirkjan Ochtman
eb4f10b0f6 Reorder code for better readability 2018-10-07 07:37:46 +02:00
bott
52bdd4b279 Fix deprecated tag s! in favor of tag! 2018-10-05 15:55:14 +02:00
bott
5d0c62c66a Fix fmt at parser.rs 2018-10-05 15:55:14 +02:00
bott
4bd302c688 Add changing delimiters support 2018-10-05 15:55:14 +02:00
bott
af880b3f20 Add center filter 2018-09-25 10:23:53 +02:00