aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/lib.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-11-01Reorganize TemplateArgs and TemplateInput structureLibravatar Dirkjan Ochtman1-4/+3
2023-11-01Inline some logic into find_used_templates()Libravatar Dirkjan Ochtman1-7/+3
2023-11-01Implement Default for MapChainLibravatar Dirkjan Ochtman1-1/+1
2023-11-01Move build_template() up to the crate rootLibravatar Dirkjan Ochtman1-2/+59
2023-11-01Inline nested derive_template() implementationLibravatar Dirkjan Ochtman1-1/+5
2023-07-31Extract askama_parser crateLibravatar Dirkjan Ochtman1-2/+2
2023-07-31derive: define separate ParseError typeLibravatar Dirkjan Ochtman1-0/+8
2023-06-28Parse templates onceLibravatar Dirkjan Ochtman1-1/+0
2022-05-24Move code generation into askama_deriveLibravatar René Kijewski1-1/+91
2022-03-23Reduce askama_derive to a single re-exportLibravatar René Kijewski1-99/+1
All the hard work in askama_derive was actually done in askama_shared. This PR removes the back-and-forth interaction between the two crates. Now askama_derive is a single re-export of `#[derive(Template)]` which has to be done in a proc_macro crate. This most likely means that askama_derive is "final", unless another derive template needs to be introduced in the future.
2022-03-23Move handling of integrations into askama_sharedLibravatar René Kijewski1-14/+2
Before this PR the handling of integrations was done both by askama_shared and askama_derive. This diff lets askama_shared do the work. This will prevent problems like #629, when both packages might come out of sync.
2022-03-23Fix clippy warningLibravatar René Kijewski1-1/+1
2022-02-07Enable tracking of the offending span of an errorLibravatar René Kijewski1-4/+1
2022-02-03Replace custom Cow with actual CowLibravatar René Kijewski1-2/+3
2022-01-24Replace `&PathBuf` with `&Path`Libravatar René Kijewski1-3/+3
PathBuf is to String like Path is to str, so `&PathBuf` is a pointer to a pointer. Clippy does not likes that.
2022-01-12`&Option<T>` → `Option<&T>`Libravatar René Kijewski1-1/+1
2022-01-06Remove the iron integration from generatorLibravatar René Kijewski1-1/+0
Issue #527 removed the askama_iron package, but not the integration if someone uses askama_derive's feature with "iron". The old askama_iron crate uses askama v0.10, so it will still work.
2022-01-06Add `#![forbid(unsafe_code)]` to all crates except askama_escapeLibravatar René Kijewski1-0/+1
2022-01-06Add `#![deny(unreachable_pub)]` to all cratesLibravatar René Kijewski1-0/+1
2021-11-27Add Axum integrationLibravatar Michael Alyn Miller1-0/+1
2021-10-25Handle build hangs due to unintended template recursion. (#539)Libravatar Gaurav Tyagi1-0/+12
2021-07-01Stop eliding lifetimes in pathsLibravatar Dirkjan Ochtman1-2/+2
2021-06-14Fix needless borrowingLibravatar Dirkjan Ochtman1-1/+1
2020-11-02Use `syn::Error::to_compile_error` and add trybuild ui test (#374)Libravatar msrd01-4/+5
2020-11-02Improve error handling (see #368)Libravatar Dirkjan Ochtman1-18/+30
2020-07-28Add mendes integrationLibravatar Dirkjan Ochtman1-0/+1
2020-07-14alphabetize frameworksLibravatar Jacob Rothstein1-1/+1
2020-07-14askama tideLibravatar Jacob Rothstein1-0/+1
2020-01-29Move code generation into askama_sharedLibravatar Dirkjan Ochtman1-142/+12
2020-01-29Move input module into askama_sharedLibravatar Dirkjan Ochtman1-2/+1
2020-01-29Move parser into askama_sharedLibravatar Dirkjan Ochtman1-5/+1
2020-01-02Clean up clippy warningsLibravatar Dirkjan Ochtman1-0/+1
2019-03-18Create heritage for extends-only templates (fixes #224)Libravatar Dirkjan Ochtman1-1/+1
2018-12-08Use 2018 edition idiomsLibravatar Dirkjan Ochtman1-5/+2
2018-12-08Upgrade to 2018 editionLibravatar Dirkjan Ochtman1-5/+5
2018-12-07Fix cargo fmtLibravatar Juan Aguilar Santillana1-1/+2
2018-11-05Send debug output to stderr instead of stdoutLibravatar Dirkjan Ochtman1-2/+2
2018-10-07Improve variable name to better reflect its typeLibravatar Dirkjan Ochtman1-2/+2
2018-10-05Add changing delimiters supportLibravatar bott1-5/+8
2018-09-14Update formatting for rust 1.29.0 rustfmtLibravatar Dirkjan Ochtman1-2/+1
2018-09-02Fix formatting with cargo fmtLibravatar Dirkjan Ochtman1-1/+2
2018-07-25Prepare Heritage before Generator instantiationLibravatar Dirkjan Ochtman1-1/+39
2018-07-11Move get_template_source() into askama_deriveLibravatar Dirkjan Ochtman1-4/+32
2018-07-11Move find_template_from_path() into ConfigLibravatar Dirkjan Ochtman1-11/+11
2018-07-04Remove restrictions to named field structs (fixes #101)Libravatar Dirkjan Ochtman1-4/+0
2018-07-02Fix unused import warningLibravatar mash1-1/+1
2018-07-02Only pass path to contextLibravatar mash1-5/+5
2018-06-22Fix formatting with cargo fmtLibravatar Dirkjan Ochtman1-4/+6
2018-06-21Flatten inherited blocks for code generationLibravatar Dirkjan Ochtman1-21/+10
2018-06-21Store extends path in ContextLibravatar Dirkjan Ochtman1-12/+11