223 Commits

Author SHA1 Message Date
bott
7e6eda2f69 Fix write expression wrapper 2018-11-11 22:39:22 +01:00
Dirkjan Ochtman
75098f3561 Code style tweaks 2018-11-11 21:22:56 +01:00
Dirkjan Ochtman
5111818c67 Use early returns to prevent deep indentation 2018-11-11 21:10:53 +01:00
bott
e7ed953b88 Add write! named arguments 2018-11-11 21:06:51 +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
471654dd94 Fix generated code format 2018-11-07 20:13:11 +01:00
Dirkjan Ochtman
31dfd81cca Send debug output to stderr instead of stdout 2018-11-05 14:36:22 +01:00
Yusuke Sasaki
82a406df79 use UFCS in derived code 2018-11-04 22:14:11 +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
Dirkjan Ochtman
4fa029f26f Take reference of unescaped expressions directly (fixes #132) 2018-10-20 20:34:47 +02:00
Dirkjan Ochtman
39e807d94d Bump version number to 0.8.0 for API change 2018-10-12 14:21:53 +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
bdf4e29293 Bump version to 0.7.2 2018-10-08 11:32:49 +02:00
Dirkjan Ochtman
ca6706711e Fix formatting 2018-10-08 11:12:57 +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
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
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
Dirkjan Ochtman
d467161159 Fix formatting with cargo fmt 2018-09-07 20:09:47 +02:00
bott
4f2176a3ad Fix deep nested imports in macro calls 2018-09-07 20:09:52 +02:00
dependabot[bot]
49b0c95f6c Update syn requirement from 0.14 to 0.15
Updates the requirements on [syn](https://github.com/dtolnay/syn) to permit the latest version.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/commits/0.15.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-09-07 12:58:10 +02:00
bott
dfb7cea037 Fix multiple nesting in macro calls into different scopes 2018-09-02 19:02:22 +02:00
Dirkjan Ochtman
6aa485ec08 Fix formatting with cargo fmt 2018-09-02 16:02:10 +02:00
bott
16b577e307 Fix nested macro calls into different scopes 2018-09-02 16:00:54 +02:00
Dirkjan Ochtman
6fd0c2f0fc Inline block content functions 2018-07-27 15:45:31 +01:00
Dirkjan Ochtman
d95c3c1061 Prepare Heritage before Generator instantiation 2018-07-25 15:06:49 +01:00
Dirkjan Ochtman
9d8e55b24d Add comment about subtleties of code generation for includes 2018-07-25 14:35:20 +01:00
Dirkjan Ochtman
fdd90a4e1c Use write!() macro instead of write_fmt() method 2018-07-25 14:12:51 +01:00
Dirkjan Ochtman
5086409fbf Disconnect Buffer instance from Generator instance 2018-07-25 14:10:20 +01:00
Dirkjan Ochtman
424f112a1a Use nested scopes for function call arguments 2018-07-25 13:55:01 +01:00
Dirkjan Ochtman
ed55cb8748 Tweak generated code style for let blocks 2018-07-25 13:49:50 +01:00
Dirkjan Ochtman
1f3fae4b11 Tweak writeln() handling of state 2018-07-25 13:49:50 +01:00
Dirkjan Ochtman
396b2b0928 Use Buffer type for expression buffers 2018-07-25 13:49:50 +01:00
Dirkjan Ochtman
cb48fd814f Take reference to indexed data 2018-07-24 15:56:07 +01:00
Dirkjan Ochtman
a4250c8c9c Improve formatting for macro arguments 2018-07-24 15:55:00 +01:00
Dirkjan Ochtman
54ae2ff7c0 Move buffer maintenance utilities into a separate type 2018-07-24 15:01:58 +01:00
Dirkjan Ochtman
b0008ff7d1 Bump versions to 0.7.1 2018-07-23 14:04:57 +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
c860bee5d5 Add optional implementation for actix_web's Responder trait 2018-07-22 14:47:29 +01:00
Ryan McGrath
b231accded Rename Rocket impl method to clarify dependency 2018-07-22 14:31:33 +01:00
Dirkjan Ochtman
f9f4f57221 Move get_template_source() into askama_derive 2018-07-11 22:38:07 +01:00