Dirkjan Ochtman
fe00fabd5c
Reference askama and std from the global scope ( fixes #17 )
...
With this change, importing `std` and `askama` into modules where templates
are defined is no longer necessary. `askama::Template` must still be imported
in scopes where methods of the `Template` trait are called.
2017-03-11 22:24:00 +01:00
Andy Librian
bedc16cbe3
reorganized filter tests
2017-03-11 21:24:21 +07:00
Andy Librian
6f9fc729eb
added trim filter ( #18 )
2017-03-11 21:23:02 +07:00
Christian Legnitto
7362ca0dcb
Add lower
and upper
filters
2017-03-10 22:41:46 +01:00
Christian Legnitto
ba70b11f40
Bump versions in README
...
Without using this version I was getting a warning on stable rust.
2017-03-10 22:30:44 +01:00
Jordan Danford
24fdb49e30
Change preposition in "Variables" section of docs
...
Changed "of the template context" to "to the template context"
2017-03-09 21:20:06 +01:00
Jordan Danford
1442aa71e5
Fix formatting in "Variables" section of docs
2017-03-09 21:20:06 +01:00
Dirkjan Ochtman
e1b70fb1b9
Bump version to 0.3.1
0.3.1
2017-03-08 21:17:56 +01:00
Dirkjan Ochtman
4b31ed5193
Ask for feedback before diving into details
2017-03-08 20:35:50 +01:00
Dirkjan Ochtman
8dc590dcb4
Clarify limitations a bit more
2017-03-08 20:35:09 +01:00
Dirkjan Ochtman
e558318dd2
Improve feature documentation in README and docs
2017-03-08 20:33:55 +01:00
Dirkjan Ochtman
39ec850b4a
Thank @dtolnay for his support in the README
2017-03-08 20:19:06 +01:00
Dirkjan Ochtman
ed89e5f027
Remove type parameter defaults from impls ( fixes #12 )
2017-03-08 20:14:55 +01:00
Dirkjan Ochtman
9397378e4e
Add missing template for test_generics
2017-03-08 20:08:46 +01:00
Dirkjan Ochtman
1d513f2781
Version bump to 0.3.0
0.3.0
2017-03-08 20:06:46 +01:00
Dirkjan Ochtman
6cf4907be8
Update quote and syn dependencies
2017-03-08 20:06:32 +01:00
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