aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/input.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-01-17Allow included templates to `extend`, `import`, and `macro`Libravatar max1-37/+65
Signed-off-by: max <gmx.sht@gmail.com>
2024-01-17Refactored `match node` in `find_used_templates`Libravatar max1-3/+17
Signed-off-by: max <gmx.sht@gmail.com>
2023-12-18Unbreak reading config from default locationLibravatar Dirkjan Ochtman1-5/+5
I broke this in 2a4d58cbb2033114890415c98a61e730185d1f83 due to refactoring for better internal abstractions in askama_derive. We also don't currently have any tests for the default config path.
2023-11-09add support for svg file extensionLibravatar Marvin Jütte1-1/+4
2023-11-01Build Config from TemplateArgsLibravatar Dirkjan Ochtman1-7/+11
2023-11-01Reorganize TemplateArgs and TemplateInput structureLibravatar Dirkjan Ochtman1-21/+21
2023-11-01Inline some logic into find_used_templates()Libravatar Dirkjan Ochtman1-1/+5
2023-11-01Attach find_used_templates() to TemplateInputLibravatar Dirkjan Ochtman1-2/+44
2023-11-01Move TemplateArgs into input moduleLibravatar Dirkjan Ochtman1-5/+132
2023-07-31Extract askama_parser crateLibravatar Dirkjan Ochtman1-1/+1
2023-07-31derive: move Syntax into parser moduleLibravatar Dirkjan Ochtman1-1/+2
2023-02-21Revert "derive: Make Config `'static`"Libravatar René Kijewski1-4/+4
2023-01-30derive: Make Config `'static`Libravatar René Kijewski1-4/+4
The configuration is made `'static`, because `toml` and `toml_edit` both needs to implement serde's `DeserializeOwned` by now. We allocate the strings once per template, so it is very unlikely that this change will have any measurable impact, neither in compile time nor RAM usage.
2023-01-30Apply clippy suggestions for 1.67 (#769)Libravatar Dirkjan Ochtman1-4/+4
2022-07-25Remove support for deprecated `_parent` fieldLibravatar René Kijewski1-25/+1
The support for the magic `_parent` field is deprecated since v0.8.0 or issue #180. It's bothersome to keep this feature alive, when no-one should be using it for 3 years.
2022-05-24Move code generation into askama_deriveLibravatar René Kijewski1-2/+1
2022-05-23Move configuration into its own moduleLibravatar René Kijewski1-1/+2
2022-04-21Add config option to derive macro so we can specify config file locationLibravatar Guillaume Gomez1-0/+1
2022-04-21Parse template derive args outside of TemplateInput::newLibravatar Guillaume Gomez1-97/+15
2022-03-23Un-"pub" most of askama_shared's internalsLibravatar René Kijewski1-16/+16
Previously askama_shared exported most of it's internals, so askama_derive could use them. This is not needed anymore.
2022-02-03Take reference to AST ident only onceLibravatar René Kijewski1-12/+17
2022-02-03Replace custom Cow with actual CowLibravatar René Kijewski1-6/+7
2022-01-31Update comment in TemplateInput::new()Libravatar René Kijewski1-1/+1
2022-01-13Tweak attribute parsing some moreLibravatar Dirkjan Ochtman1-10/+7
2022-01-13Make sure '#[template(…)]' is given exactly onceLibravatar René Kijewski1-16/+22
2022-01-13Rename "meta" in proc_macro parserLibravatar René Kijewski1-3/+3
2022-01-07Determine Content-Type during compilationLibravatar René Kijewski1-0/+6
2022-01-07Make TemplateInput::extension() reusableLibravatar René Kijewski1-1/+7
2022-01-07Unshadow function escaping()Libravatar René Kijewski1-3/+3
2022-01-07Move extension_to_mime_type() to askama_sharedLibravatar René Kijewski1-0/+27
2022-01-06Omit implicit lifetimesLibravatar René Kijewski1-1/+1
2021-11-10Don't parse non-template attributesLibravatar Dirkjan Ochtman1-9/+5
2021-07-01Stop eliding lifetimes in pathsLibravatar Dirkjan Ochtman1-1/+1
2021-03-10Changed to allow both path and extLibravatar vallentin1-5/+2
2021-03-10Added extension testsLibravatar vallentin1-0/+48
2021-03-10Fixed extension to ignore common jinja extensions (fixes #457)Libravatar vallentin1-1/+11
2021-03-10Refactored getting path extensionLibravatar vallentin1-1/+9
2021-02-28Fix style suggestion per nightly clippyLibravatar Dirkjan Ochtman1-1/+1
2020-11-02Improve error handling (see #368)Libravatar Dirkjan Ochtman1-39/+48
2020-02-08Adapt to new warnings and formattingLibravatar Dirkjan Ochtman1-1/+0
2020-01-29Move input module into askama_sharedLibravatar Dirkjan Ochtman1-1/+1
2020-01-02Clean up clippy warningsLibravatar Dirkjan Ochtman1-1/+1
2019-08-14Prevent rightward drift in attribute interpretation codeLibravatar Dirkjan Ochtman1-42/+51
2019-08-14Switch to syn/quote/proc_macro2 1.0Libravatar Dirkjan Ochtman1-69/+57
2019-07-11Implement selected clippy recommendations.Libravatar Bardi Harborow1-7/+4
2019-01-12Allow configuration of escape modesLibravatar Dirkjan Ochtman1-9/+18
2019-01-12Specify a trait that handles the output format's escapingLibravatar Dirkjan Ochtman1-33/+15
2019-01-10Add warning of deprecated field '_parent'Libravatar Juan Aguilar Santillana1-0/+10
2018-12-08Use 2018 edition idiomsLibravatar Dirkjan Ochtman1-1/+1
2018-12-08Upgrade to 2018 editionLibravatar Dirkjan Ochtman1-1/+1