aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-06-15Handle imports as part of code generationLibravatar Dirkjan Ochtman2-45/+17
2018-06-15Set up State contents in generate() to prevent borrowing issuesLibravatar Dirkjan Ochtman1-64/+57
2018-06-15Port parser to nom 4Libravatar Dirkjan Ochtman1-67/+79
2018-06-14Leverage binding modes to make pattern matching more robust (fixes #94)Libravatar Dirkjan Ochtman1-11/+5
2018-05-27Simplify code according to clippy suggestionsLibravatar Dirkjan Ochtman1-6/+3
2018-05-27Allow methods to be called on selfLibravatar Dirkjan Ochtman1-1/+6
2018-05-25Simplify generated code by propagating final expressionsLibravatar Dirkjan Ochtman1-5/+4
2018-05-25Extract path rooting to simplify trait_name_for_path()Libravatar Dirkjan Ochtman1-8/+8
2018-05-25Simplify types in generator State creationLibravatar Dirkjan Ochtman1-10/+10
2018-05-24Rename lifetime to 'askama to prevent conflicts (fixes #88)Libravatar Dirkjan Ochtman1-3/+3
2018-05-24Fix lifetime arguments to Rocket impls (fixes #89)Libravatar Dirkjan Ochtman1-1/+1
Broken during the upgrade to syn-0.14/quote-0.6.
2018-05-21Warn about blocks that are nested inside something other than blocksLibravatar Dirkjan Ochtman1-1/+6
2018-05-21Upgrade to syn-0.14 and quote-0.6Libravatar Dirkjan Ochtman3-22/+23
2018-05-20Add support for nested blocks (fixes #85)Libravatar Dirkjan Ochtman1-4/+32
2018-05-16Fix suggestions from clippyLibravatar Dirkjan Ochtman1-5/+4
2018-05-14Fix copy/paste error in whitespace handlingLibravatar Dirkjan Ochtman1-2/+2
2018-04-27Add support for unary operators (fixes #83)Libravatar Dirkjan Ochtman2-1/+18
2018-04-19Fix issues with expression code interleaving with statements (see #78)Libravatar Dirkjan Ochtman1-20/+16
2018-04-17Properly handle whitespace around comments (fixes #79)Libravatar Dirkjan Ochtman2-4/+11
2018-04-17Name function call expressions before passing as an argument (fixes #78)Libravatar Dirkjan Ochtman1-13/+26
2018-04-17Use a temporary buffer to build expressionsLibravatar Dirkjan Ochtman1-88/+104
2018-04-12Isolate proc-macro dependency to the proc macroLibravatar David Tolnay4-1/+1858
The dependency of askama on askama_shared on syn on libproc_macro used to mean libproc_macro would be dynamically linked into any crate using askama. We want only askama_derive to have a runtime dependency on proc macro. This commit moves all proc macro code from askama_shared into askama_derive so that the askama crate no longer dynamically links libproc_macro.
2018-01-09Upgrade to syn-0.12 and quote-0.4Libravatar Dirkjan Ochtman1-3/+3
2017-09-05Move tightly coupled code from derive to shared crateLibravatar Dirkjan Ochtman1-111/+1
2017-08-27Move most of the code into new askama_shared crateLibravatar Dirkjan Ochtman4-1283/+5
This makes it possible to share code between askama and askama_derive.
2017-08-25Use block implementations in parent as defaults in traitLibravatar Dirkjan Ochtman1-11/+3
2017-08-24Allow {% block name %} {% endblock name %}Libravatar Bastien Orivel1-0/+1
This makes converting an app from tera to askama easier.
2017-08-24Add support for user-defined filtersLibravatar Dirkjan Ochtman1-1/+15
2017-08-23Add optional support for RocketLibravatar Dirkjan Ochtman1-0/+24
2017-08-23Allow passing extra annotation parameters to impl headersLibravatar Dirkjan Ochtman1-13/+28
2017-08-23Optionally implement Iron's Modifier<Response> for templatesLibravatar Dirkjan Ochtman1-0/+12
2017-08-22Add support for calling macrosLibravatar Dirkjan Ochtman2-13/+44
2017-08-22Refactor parser handling of argumentsLibravatar Dirkjan Ochtman1-21/+19
2017-08-22Implement support for macro definition handlingLibravatar Dirkjan Ochtman2-8/+59
2017-08-22Rename method call internals for clarityLibravatar Dirkjan Ochtman2-5/+5
2017-08-21Change filters to return ResultLibravatar Dirkjan Ochtman1-0/+3
2017-08-16Support specifying template source as an attributeLibravatar Dirkjan Ochtman1-11/+29
2017-08-16Pass path to code generation as PathLibravatar Dirkjan Ochtman2-10/+8
2017-08-16Change find_template_from_path() to take Path as start_at argumentLibravatar Dirkjan Ochtman2-7/+7
2017-08-16Simplify relative path handling in find_template_from_path()Libravatar Dirkjan Ochtman1-10/+7
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