aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-08-16Use reference into AST for template path instead of cloningLibravatar Dirkjan Ochtman1-4/+4
2017-08-16Use enum for print option valueLibravatar Dirkjan Ochtman1-5/+26
2017-08-16Allow separation of variable declaration and defintionLibravatar Dirkjan Ochtman2-4/+27
2017-08-14Add support for simple variable definition statementsLibravatar Dirkjan Ochtman2-0/+27
2017-08-14Introduce and clean up scopes where necessaryLibravatar Dirkjan Ochtman1-0/+6
2017-08-14Assert invariant for SetChain implementationLibravatar Dirkjan Ochtman1-0/+1
2017-08-14Use error-chain to create a crate-specific Error typeLibravatar Dirkjan Ochtman1-2/+2
2017-08-14Define type askama::Result to use for all rendering methodsLibravatar Dirkjan Ochtman1-7/+7
2017-08-13Generate with full path to ResultLibravatar Anthony Nowell1-7/+7
2017-08-10Inline scope tracking abstraction againLibravatar Dirkjan Ochtman1-24/+6
2017-08-10Keep better track of nested scope through scope chainsLibravatar Dirkjan Ochtman1-17/+50
2017-08-10Replace unwrap() with expect() call for parent type findingLibravatar Dirkjan Ochtman1-1/+3
2017-08-10Add note to template_dir() about being duplicatedLibravatar Dirkjan Ochtman1-0/+1
2017-08-10Prevent allocations for loop target namesLibravatar Dirkjan Ochtman1-3/+3
2017-08-10Implement Display for all TemplatesLibravatar Dirkjan Ochtman1-0/+10
2017-08-10Propagate format errors and rename `render_to()` to `render_into()`Libravatar Dirkjan Ochtman1-15/+24
2017-08-08Add helper methods to abstract away dealing with scopesLibravatar Dirkjan Ochtman1-3/+17
2017-08-08Add some comments to clarify structure of the code generatorLibravatar Dirkjan Ochtman1-0/+8
2017-08-08Reorganize code order in askama_derive modulesLibravatar Dirkjan Ochtman3-137/+137
2017-08-08Clean up use statements in code generatorLibravatar Dirkjan Ochtman1-1/+4
2017-08-08Implement Deref<Parent> for inheriting templates (fixes #28)Libravatar Dirkjan Ochtman1-0/+31
2017-08-08Refactor handling of paths and trait namesLibravatar Dirkjan Ochtman1-18/+20
2017-08-08Move path_as_identifier() closer to driverLibravatar Dirkjan Ochtman1-12/+12
2017-08-08Add some comments to clarify code generator methodsLibravatar Dirkjan Ochtman1-0/+6
2017-08-08Simplify write_header() method by taking trait name directlyLibravatar Dirkjan Ochtman1-12/+6
2017-08-06Share HashSet for locals among nested GeneratorsLibravatar Dirkjan Ochtman1-10/+14
2017-08-06Expand include node to template source during code generationLibravatar Dirkjan Ochtman2-7/+7
2017-08-06Use one way of finding templates on the pathLibravatar Dirkjan Ochtman3-5/+7
2017-08-06Merge handling of trailing newline into get_template_source()Libravatar Dirkjan Ochtman3-15/+9
2017-08-06Add test for path::get_template_source()Libravatar Dirkjan Ochtman1-1/+6
2017-08-06Allow parent templates to be specified as relative paths (fixes #26)Libravatar Dirkjan Ochtman1-4/+12
2017-08-06Add tests for find_template_from_path()Libravatar Dirkjan Ochtman1-0/+30
2017-08-06Add function to find template relative to another template's pathLibravatar Dirkjan Ochtman1-0/+24
2017-08-04Add test for panic on invalid blocks (see #27)Libravatar Dirkjan Ochtman1-0/+5
2017-08-04Let parse() panic if template is not parsed completely (fixes #27)Libravatar Dirkjan Ochtman1-1/+8
2017-08-04Handle parsing for blocks in one placeLibravatar Dirkjan Ochtman1-15/+14
2017-08-04Add support for include blocks (see #25)Libravatar Dirkjan Ochtman2-5/+47
2017-08-02Fix edge cases in content literal parser (fixes #24)Libravatar Dirkjan Ochtman1-11/+26
2017-05-26Add support for chained attributes (fixes #22)Libravatar Dirkjan Ochtman1-12/+21
2017-03-11Reference askama and std from the global scope (fixes #17)Libravatar Dirkjan Ochtman1-8/+8
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-08Remove type parameter defaults from impls (fixes #12)Libravatar Dirkjan Ochtman1-1/+3
2017-03-08Use if let to better handle Option typeLibravatar Dirkjan Ochtman1-2/+2
2017-03-08Copy type parameters and where clauses (fixes #11)Libravatar Dirkjan Ochtman2-9/+40
2017-03-07Inline annotations() helper into write_header()Libravatar Dirkjan Ochtman1-14/+9
2017-03-07Extract writing of impl headers in generatorLibravatar Dirkjan Ochtman1-10/+14
2017-03-07Panic with better message if template not found (fixes #4)Libravatar Dirkjan Ochtman1-1/+8
2017-03-07Panic with better message if template attribute is not found (fixes #3)Libravatar Dirkjan Ochtman1-1/+8
2017-03-06Use enumerate() for much simpler loop indexes (fixes #10)Libravatar Dirkjan Ochtman1-23/+5
2017-03-06Better support for Iterator variants in for loop (fixes #8)Libravatar Dirkjan Ochtman1-2/+2
2017-03-06Hide askama_derive dependency inside askama (fixes #2)Libravatar Dirkjan Ochtman4-2/+891