Dirkjan Ochtman
b7446b744a
Add test for deref implementation (see #28 )
2017-08-08 12:36:29 +02:00
Dirkjan Ochtman
e3d08c72bc
Implement Deref<Parent> for inheriting templates ( fixes #28 )
2017-08-08 12:36:29 +02:00
Dirkjan Ochtman
20efa67bc1
Refactor handling of paths and trait names
2017-08-08 12:36:26 +02:00
Dirkjan Ochtman
a993920ae6
Move path_as_identifier() closer to driver
2017-08-08 12:18:34 +02:00
Dirkjan Ochtman
21e5c86ea2
Add some comments to clarify code generator methods
2017-08-08 12:17:11 +02:00
Dirkjan Ochtman
b3b9849f7e
Simplify write_header() method by taking trait name directly
2017-08-08 12:14:22 +02:00
Dirkjan Ochtman
ed2fd2b105
Share HashSet for locals among nested Generators
2017-08-06 20:55:41 +02:00
Dirkjan Ochtman
47df34c0f0
Expand include node to template source during code generation
2017-08-06 14:59:27 +02:00
Dirkjan Ochtman
077c56c007
Use one way of finding templates on the path
2017-08-06 14:56:09 +02:00
Dirkjan Ochtman
b9cb5b82e6
Merge handling of trailing newline into get_template_source()
2017-08-06 14:51:56 +02:00
Dirkjan Ochtman
05f11a6843
Add test for path::get_template_source()
2017-08-06 14:48:55 +02:00
Dirkjan Ochtman
21885c06bf
Allow parent templates to be specified as relative paths ( fixes #26 )
2017-08-06 14:44:35 +02:00
Dirkjan Ochtman
0514e4fec7
Add tests for find_template_from_path()
2017-08-06 14:44:35 +02:00
Dirkjan Ochtman
670dbe4aec
Add function to find template relative to another template's path
2017-08-06 14:44:29 +02:00
Dirkjan Ochtman
e293a1a90c
Add test for panic on invalid blocks (see #27 )
2017-08-04 15:58:09 +02:00
Dirkjan Ochtman
a90b065f46
Let parse() panic if template is not parsed completely ( fixes #27 )
2017-08-04 15:57:49 +02:00
Dirkjan Ochtman
061330d850
Handle parsing for blocks in one place
2017-08-04 15:56:30 +02:00
Dirkjan Ochtman
549d0ec3c6
Add test for include blocks (see #25 )
2017-08-04 13:21:55 +02:00
Dirkjan Ochtman
51eee57b84
Add support for include blocks (see #25 )
2017-08-04 13:21:55 +02:00
Dirkjan Ochtman
02e0f783f9
Bump version to 0.3.4
0.3.4
2017-08-02 21:00:23 +02:00
Dirkjan Ochtman
8ff2e316c0
Merge changes
2017-08-02 20:59:30 +02:00
Dirkjan Ochtman
91fe53d9b5
Bump version number to 0.3.3
2017-08-02 20:54:07 +02:00
Dirkjan Ochtman
9330f4f584
Update dependencies
2017-08-02 20:51:43 +02:00
Dirkjan Ochtman
77c8279031
Bump version number to 0.3.2
2017-08-02 20:51:35 +02:00
Dirkjan Ochtman
85ed025368
Add test that starts with a single brace (see #24 )
2017-08-02 20:49:08 +02:00
Dirkjan Ochtman
82d85bbc20
Fix edge cases in content literal parser ( fixes #24 )
2017-08-02 20:48:41 +02:00
Dirkjan Ochtman
ce84543b69
Add test for basic chained attributes
2017-05-26 11:45:27 +02:00
Dirkjan Ochtman
71d99927a6
Add support for chained attributes ( fixes #22 )
2017-05-26 11:45:27 +02:00
Jordan Danford
52733424e7
Remove duplicate "if/else"
2017-05-14 07:00:23 +02:00
Dirkjan Ochtman
f0efc21b3e
Update dependencies
2017-05-12 20:31:31 +02:00
Dirkjan Ochtman
1d798e4a48
Bump version to 0.3.2
0.3.2
2017-03-12 20:55:15 +01:00
Dirkjan Ochtman
2585a4dae0
Add some documentation about inheritance pitfalls
2017-03-12 20:53:13 +01:00
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