aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/lib.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-06-21Let build_template() own the template sourceLibravatar Dirkjan Ochtman1-2/+9
2018-06-21Rename variable for consistencyLibravatar Dirkjan Ochtman1-5/+5
2018-06-15Handle imports as part of code generationLibravatar Dirkjan Ochtman1-41/+1
2018-05-21Upgrade to syn-0.14 and quote-0.6Libravatar Dirkjan Ochtman1-1/+1
2018-04-12Isolate proc-macro dependency to the proc macroLibravatar David Tolnay1-1/+71
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 Ochtman1-11/+5
This makes it possible to share code between askama and askama_derive.
2017-08-16Support specifying template source as an attributeLibravatar Dirkjan Ochtman1-11/+29
2017-08-16Pass path to code generation as PathLibravatar Dirkjan Ochtman1-1/+3
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-08Reorganize code order in askama_derive modulesLibravatar Dirkjan Ochtman1-34/+34
2017-08-06Use one way of finding templates on the pathLibravatar Dirkjan Ochtman1-1/+2
2017-08-06Merge handling of trailing newline into get_template_source()Libravatar Dirkjan Ochtman1-4/+1
2017-03-08Copy type parameters and where clauses (fixes #11)Libravatar Dirkjan Ochtman1-0/+1
2017-03-07Panic with better message if template attribute is not found (fixes #3)Libravatar Dirkjan Ochtman1-1/+8
2017-03-06Hide askama_derive dependency inside askama (fixes #2)Libravatar Dirkjan Ochtman1-2/+71
2017-02-17Move template metadata processing into askama crateLibravatar Dirkjan Ochtman1-31/+1
2017-02-17Define struct to represent template metadataLibravatar Dirkjan Ochtman1-9/+23
2017-02-08Simplify derive_template() functionLibravatar Dirkjan Ochtman1-5/+2
2017-02-08Simplify code to find template pathLibravatar Dirkjan Ochtman1-23/+10
2017-02-08Expose less granular API in askama crateLibravatar Dirkjan Ochtman1-17/+1
2017-02-05Generate path-based type aliasesLibravatar Dirkjan Ochtman1-1/+1
2017-02-05Improve name and ownership of AST vectorLibravatar Dirkjan Ochtman1-2/+2
2017-02-04Pass entire AST to code generatorLibravatar Dirkjan Ochtman1-2/+1
2017-02-04Upgrade to syn-0.11Libravatar Dirkjan Ochtman1-1/+1
2017-02-02Remove unneeded feature(proc_macro) annotationLibravatar Dirkjan Ochtman1-2/+0
2017-01-07Move parser and generator code into askama crateLibravatar Dirkjan Ochtman1-7/+3
2017-01-07Get rid of unused quote dependencyLibravatar Dirkjan Ochtman1-2/+0
2017-01-03Rename askama_codegen to askama_deriveLibravatar Dirkjan Ochtman1-0/+0
This appears to be best practice for crates using macros 1.1.
2016-12-24Move impl code generator into separate moduleLibravatar Dirkjan Ochtman1-21/+2
2016-12-24Move template parser into separate moduleLibravatar Dirkjan Ochtman1-31/+6
2016-12-24Implement very basic template parserLibravatar Dirkjan Ochtman1-8/+46
2016-12-23Get template from Cargo manifest-relative sourceLibravatar Dirkjan Ochtman1-2/+7
2016-12-22Attempt at grabbing template source from fileLibravatar Dirkjan Ochtman1-1/+43