aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src/lib.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
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
2018-11-16Add filesizeformat filterLibravatar youmouse1-0/+1
2018-11-07Create askama_escape crateLibravatar bott1-2/+2
2018-10-08Fix formattingLibravatar Dirkjan Ochtman1-2/+7
2018-10-08Move default_syntax setting into general sectionLibravatar Dirkjan Ochtman1-21/+21
2018-10-07Handle syntax validation during Config instantiationLibravatar Dirkjan Ochtman1-16/+38
2018-10-07Remove unnecessary type declarationLibravatar Dirkjan Ochtman1-1/+1
2018-10-07Tweak error messages for language, consistencyLibravatar Dirkjan Ochtman1-2/+2
2018-10-07Reorder code for better readabilityLibravatar Dirkjan Ochtman1-48/+48