aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/config.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-06-15Replace `&Option<Box<T>>` with `Option<&T>` (#696)Libravatar René Kijewski1-1/+1
No need to work on references to references.
2022-05-24Move code generation into askama_deriveLibravatar René Kijewski1-0/+0
2022-05-23Move configuration into its own moduleLibravatar René Kijewski1-205/+23
2022-04-26Fix invalid check (#678)Libravatar Guillaume Gomez1-2/+2
2022-04-26Add test for new `whitespace` parameter value: "minimize"Libravatar Guillaume Gomez1-0/+9
2022-04-26Add WhitespaceHandling::MinimizeLibravatar Guillaume Gomez1-0/+4
2022-04-21Rename `suppress_whitespace` into `whitespace` and update expected values to ↵Libravatar Guillaume Gomez1-10/+43
"suppress" and "preserve"
2022-04-21Add config option to derive macro so we can specify config file locationLibravatar Guillaume Gomez1-2/+8
2022-04-21Add suppress_whitespace config optionLibravatar Guillaume Gomez1-2/+19
2022-03-31Add io::writer helper methodsLibravatar René Kijewski1-2/+20
It might not be immediately obvious to everyone how easy it is to use Askama template with std::io (e.g. files) instead of std::fmt, so this PR adds a few helper methods to make this more obvious to novice users.
2022-03-31Expose the fact that templates implement DisplayLibravatar René Kijewski1-2/+21
This is a quite useful feature, because you can use templates in format!(), format_args!(), etc.
2022-03-30Move Template into askama_shared, tooLibravatar René Kijewski1-0/+88
The traits Template and DynTemplate need to be in sync with askama_shared's generator. #647 consolidated the template crating into askama_shared, this PR moves the trait itself.
2022-03-23Merge derive.rs into generator.rsLibravatar René Kijewski1-2/+1
2022-03-23Un-"pub" most of askama_shared's internalsLibravatar René Kijewski1-27/+23
Previously askama_shared exported most of it's internals, so askama_derive could use them. This is not needed anymore.
2022-03-23Reduce askama_derive to a single re-exportLibravatar René Kijewski1-0/+2
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-11/+0
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-5/+24
2022-02-03Replace custom Cow with actual CowLibravatar René Kijewski1-18/+14
2022-01-07Move extension_to_mime_type() to askama_sharedLibravatar René Kijewski1-0/+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
2022-01-06Omit implicit lifetimesLibravatar René Kijewski1-3/+3
2021-11-27Add Axum integrationLibravatar Michael Alyn Miller1-0/+1
2021-07-01Stop eliding lifetimes in pathsLibravatar Dirkjan Ochtman1-0/+1
2021-07-01Fix a clippy::needless-borrow warning in askama_sharedLibravatar René Kijewski1-1/+1
2020-12-21Remove an explicit lifetime to fix a clippy warningLibravatar Randati1-1/+1
2020-11-02Improve error handling (see #368)Libravatar Dirkjan Ochtman1-52/+92
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-02-08Adapt to new warnings and formattingLibravatar Dirkjan Ochtman1-2/+0
2020-01-29Move code generation into askama_sharedLibravatar Dirkjan Ochtman1-1/+38
2020-01-29Move input module into askama_sharedLibravatar Dirkjan Ochtman1-0/+1
2020-01-29Move parser into askama_sharedLibravatar Dirkjan Ochtman1-0/+1
2020-01-15Remove unnecessary explicit lifetimesLibravatar Dirkjan Ochtman1-1/+1
2020-01-15Make dependencies optional where possibleLibravatar Dirkjan Ochtman1-9/+34
2020-01-15Modernize and simplify importsLibravatar Dirkjan Ochtman1-8/+4
2020-01-02Clean up clippy warningsLibravatar Dirkjan Ochtman1-6/+7
2019-07-25Update formattingLibravatar Dirkjan Ochtman1-2/+8
2019-07-11Implement selected clippy recommendations.Libravatar Bardi Harborow1-1/+1
2019-04-01Fix tests for extensionsLibravatar Dirkjan Ochtman1-2/+2
2019-04-01Add md and yml to non-escaped extensions (fixes #229)Libravatar Dirkjan Ochtman1-1/+1
2019-02-06Make html-escaper also escape .j2, .jinja and .jinja2 filesLibravatar Daniel Wiesenberg1-0/+2
2019-01-12Allow configuration of escape modesLibravatar Dirkjan Ochtman1-0/+57
2019-01-08Add support for loop.lastLibravatar yossyJ1-0/+1
2018-12-08Use 2018 edition idiomsLibravatar Dirkjan Ochtman1-10/+4
2018-12-08Upgrade to 2018 editionLibravatar Dirkjan Ochtman1-1/+1
2018-12-07Fix typo in serde_json featureLibravatar Dirkjan Ochtman1-1/+1