190 Commits

Author SHA1 Message Date
Dirkjan Ochtman
c84f081043 Clean up askama crate per clippy's suggestions 2017-03-08 20:03:08 +01:00
Dirkjan Ochtman
a20340d2e8 Improve language in talking about build script 2017-03-08 19:58:27 +01:00
Dirkjan Ochtman
3d52968a18 Remove incorrect remark about proc macro export restrictions 2017-03-08 19:58:11 +01:00
Dirkjan Ochtman
6e1ef94b93 Use if let to better handle Option type 2017-03-08 19:56:53 +01:00
Dirkjan Ochtman
f71b2f0323 Add test for type parameters and where clauses (see #9) 2017-03-08 19:55:47 +01:00
Dirkjan Ochtman
c927d51fe1 Copy type parameters and where clauses (fixes #11) 2017-03-08 19:55:27 +01:00
Dirkjan Ochtman
f229c79517 Inline annotations() helper into write_header() 2017-03-07 21:39:41 +01:00
Dirkjan Ochtman
4c8a5b5104 Remove debugging cruft from test_nested_for 2017-03-07 21:34:50 +01:00
Dirkjan Ochtman
2d5c2d2f10 Extract writing of impl headers in generator 2017-03-07 21:34:09 +01:00
Dirkjan Ochtman
8d97f81880 Panic with better message if template not found (fixes #4) 2017-03-07 21:14:57 +01:00
Dirkjan Ochtman
d65d08b937 Panic with better message if template attribute is not found (fixes #3) 2017-03-07 21:07:01 +01:00
Dirkjan Ochtman
0eeb5d1b2d Add test for nested loops and loops over slices (see #6, #7, #9) 2017-03-07 21:00:44 +01:00
Dirkjan Ochtman
a0a3e4018c Create separate test module for loops 2017-03-07 07:39:42 +01:00
Dirkjan Ochtman
18735c9644 Use enumerate() for much simpler loop indexes (fixes #10) 2017-03-06 22:47:25 +01:00
Dirkjan Ochtman
b469bc208f Better support for Iterator variants in for loop (fixes #8) 2017-03-06 22:42:46 +01:00
Dirkjan Ochtman
5763b88a70 Remove unused template alias from README (see #5) 2017-03-06 22:41:06 +01:00
Dirkjan Ochtman
664398b225 Hide askama_derive dependency inside askama (fixes #2) 2017-03-06 22:40:04 +01:00
Dirkjan Ochtman
0efd0c5cc5 Remove unused TemplateFrom types (fixes #5) 2017-03-06 22:20:54 +01:00
Dirkjan Ochtman
90f6acaa68 Add link to documentation to Cargo manifest 2017-03-05 20:03:13 +01:00
Dirkjan Ochtman
bd94bf2d01 Bump version to 0.2.1 0.2.1 2017-03-05 19:56:35 +01:00
Dirkjan Ochtman
0725008142 Slightly update limitations in README 2017-03-05 19:55:08 +01:00
Dirkjan Ochtman
c362310e8b Add readme to Cargo package metadata 2017-03-05 19:54:36 +01:00
Dirkjan Ochtman
a56ee12990 Rewrite README in Markdown 2017-03-05 19:51:21 +01:00
Dirkjan Ochtman
b8c36fbdc8 Add note about working on stable Rust 2017-03-05 19:38:11 +01:00
Dirkjan Ochtman
5e3ee8e427 Add testimonial from Armin Ronacher 2017-03-05 19:35:55 +01:00
Dirkjan Ochtman
b71b743f58 Add crates.io badge to README 2017-03-04 10:34:08 +01:00
Dirkjan Ochtman
4439cca679 Adapt coverage collection for cargo workspaces with proc_macro crates 2017-03-03 22:01:10 +01:00
nabijaczleweli
f7a2d7b7f5 Add syntax highlighting to README 2017-03-03 21:57:48 +01:00
Dirkjan Ochtman
6c6081fd3f Execute more tests for coverage 2017-03-03 21:29:55 +01:00
Dirkjan Ochtman
7cdfde89e0 Add codecov badge to README 2017-03-03 21:23:09 +01:00
Dirkjan Ochtman
ad0e178e17 Submit code coverage data to codecov.io 2017-03-03 21:17:19 +01:00
Dirkjan Ochtman
283236cbf1 Link to documentation from README 2017-03-03 20:51:19 +01:00
Dirkjan Ochtman
37199d06f0 Update version numbers and dependencies 0.2.0 2017-03-03 20:50:01 +01:00
Dirkjan Ochtman
dde66f33b9 Bump version for askama_derive 2017-03-03 20:46:40 +01:00
Dirkjan Ochtman
bc9ea7c38b Bump version for askama 2017-03-03 20:45:45 +01:00
Dirkjan Ochtman
71f9f51d2a Add test for comments 2017-03-03 20:43:12 +01:00
Dirkjan Ochtman
8c0f435830 Add basic support for comments 2017-03-03 20:43:02 +01:00
Dirkjan Ochtman
c0d81103c2 Add test for parenthesized expressions 2017-03-03 20:31:18 +01:00
Dirkjan Ochtman
8bc255bc63 Add support for parenthesized expressions 2017-03-03 20:31:09 +01:00
Dirkjan Ochtman
cf075ee7c8 Create documentation about supported template syntax
This heavily steals from Jinja in structure if not in exact language.
2017-03-03 20:23:35 +01:00
Dirkjan Ochtman
aa98f61fa7 Discard trailing newlines from templates by default
This matches Jinja's behavior, and seems sensible.
2017-03-03 16:44:54 +01:00
Dirkjan Ochtman
24c5693de8 Add basic documentation for visible items 2017-03-03 16:01:38 +01:00
Dirkjan Ochtman
4d01f31528 Improve language in debugging section 2017-03-03 15:37:03 +01:00
Dirkjan Ochtman
c7193a9f89 Point to tests from example section 2017-03-03 15:36:17 +01:00
Dirkjan Ochtman
f9a52b2784 Add debugging and troubleshooting section to README 2017-03-03 15:35:19 +01:00
Dirkjan Ochtman
a407cd477b Add basic test for loop variables 2017-02-19 14:19:11 +01:00
Dirkjan Ochtman
436a82f50f Add support for loop.index and loop.index0 variables 2017-02-19 14:18:53 +01:00
Dirkjan Ochtman
794183e824 Soften remark on complexity of debugging 2017-02-18 16:14:16 +01:00
Dirkjan Ochtman
643c1fc7a5 Add support for debugging parser AST 2017-02-18 16:13:24 +01:00
Dirkjan Ochtman
31cc61cd1f Remove note about limited support for expressions 2017-02-18 16:09:41 +01:00