aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/config.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-07-31Extract askama_parser crateLibravatar Dirkjan Ochtman1-1/+1
2023-07-31derive: move whitespace conversion into config moduleLibravatar Dirkjan Ochtman1-1/+11
2023-07-31derive: move Syntax into parser moduleLibravatar Dirkjan Ochtman1-34/+11
2023-05-31Allow delimiters with arbitrary lengthLibravatar René Kijewski1-16/+94
2023-03-13Add tests for whitespace argument in template derive proc-macroLibravatar Guillaume Gomez1-0/+30
2023-03-13Add whitespace argument in template derive proc-macroLibravatar Guillaume Gomez1-16/+31
2023-02-21Revert "derive: Make Config `'static`"Libravatar René Kijewski1-47/+49
2023-02-21Replace `toml_edit` with `basic-toml`Libravatar René Kijewski1-1/+1
2023-01-30Use `toml_edit` instead of `toml`Libravatar René Kijewski1-1/+2
Since version 0.6, `toml` is a wrapper around `toml_edit`, and the more basic library already meets our needs.
2023-01-30derive: Make Config `'static`Libravatar René Kijewski1-48/+47
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/+3
2022-11-07chore: remove allow(clippy::disallowed_names)Libravatar Dirkjan Ochtman1-1/+0
2022-11-07chore: apply clippy suggestions for 1.65Libravatar Dirkjan Ochtman1-1/+1
2022-06-20Feature-gate test_whitespace_parsing()Libravatar René Kijewski1-0/+1
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