Dirkjan Ochtman
|
5f3e93da3f
|
Use error-chain to create a crate-specific Error type
|
2017-08-14 12:57:01 +02:00 |
|
Dirkjan Ochtman
|
69c447f0c7
|
Remove Cargo.lock
Apparently library crates generally don't include this in their repositories.
|
2017-08-14 12:28:06 +02:00 |
|
Dirkjan Ochtman
|
9dcba34f0d
|
Define type askama::Result to use for all rendering methods
|
2017-08-14 12:22:48 +02:00 |
|
Anthony Nowell
|
0b814fd0fa
|
Generate with full path to Result
|
2017-08-13 10:43:34 +02:00 |
|
Dirkjan Ochtman
|
8bda0d64d5
|
Inline scope tracking abstraction again
|
2017-08-10 21:49:15 +02:00 |
|
Dirkjan Ochtman
|
1a9a82ac7d
|
Keep better track of nested scope through scope chains
|
2017-08-10 21:46:19 +02:00 |
|
Dirkjan Ochtman
|
44e4741504
|
Replace unwrap() with expect() call for parent type finding
|
2017-08-10 12:53:10 +02:00 |
|
Dirkjan Ochtman
|
68572d35ce
|
Add note to template_dir() about being duplicated
|
2017-08-10 12:52:48 +02:00 |
|
Dirkjan Ochtman
|
cd685eefb4
|
Disable debug output for example by default
|
2017-08-10 12:52:31 +02:00 |
|
Dirkjan Ochtman
|
3b4c7e266b
|
Update debugging example in README
|
2017-08-10 12:37:25 +02:00 |
|
Dirkjan Ochtman
|
e8c47b7135
|
Add README example as a test case
|
2017-08-10 12:37:01 +02:00 |
|
Dirkjan Ochtman
|
adfc52a26d
|
Forgot to commit test template
|
2017-08-10 12:36:36 +02:00 |
|
Dirkjan Ochtman
|
420fd89174
|
Prevent allocations for loop target names
|
2017-08-10 12:22:07 +02:00 |
|
Dirkjan Ochtman
|
cece25b0be
|
Implement Display for all Templates
|
2017-08-10 09:51:48 +02:00 |
|
Dirkjan Ochtman
|
1e0ee705a8
|
Propagate format errors and rename render_to() to render_into()
|
2017-08-10 09:27:33 +02:00 |
|
Dirkjan Ochtman
|
ffc74a1775
|
Add helper methods to abstract away dealing with scopes
|
2017-08-08 20:46:38 +02:00 |
|
Dirkjan Ochtman
|
3e1dbe4d6d
|
Add some comments to clarify structure of the code generator
|
2017-08-08 20:45:57 +02:00 |
|
Dirkjan Ochtman
|
d40f5a3ea6
|
Reorganize code order in askama_derive modules
|
2017-08-08 20:29:43 +02:00 |
|
Dirkjan Ochtman
|
946e8c7587
|
Clean up use statements in code generator
|
2017-08-08 20:26:03 +02:00 |
|
Dirkjan Ochtman
|
aadc4a9aa2
|
Rewrite sentence from passive to active
|
2017-08-08 12:49:16 +02:00 |
|
Dirkjan Ochtman
|
647c8c0b52
|
Add some documentation about includes
|
2017-08-08 12:49:04 +02:00 |
|
Dirkjan Ochtman
|
52dee62de8
|
Update documentation on inheritance
|
2017-08-08 12:43:12 +02:00 |
|
Dirkjan Ochtman
|
2b8c71c4c0
|
Update README to clarify/update status
|
2017-08-08 12:39:19 +02:00 |
|
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 |
|