aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-11-01Move TemplateArgs into input moduleLibravatar Dirkjan Ochtman2-134/+134
2023-11-01Inline nested derive_template() implementationLibravatar Dirkjan Ochtman2-12/+6
2023-10-12Allow macros to take `self` as an argumentLibravatar PizzasBear1-1/+1
2023-10-06Apply clippy suggestions from Rust 1.73Libravatar Dirkjan Ochtman1-1/+1
2023-10-03Advertise Discord channel instead of GitterLibravatar Dirkjan Ochtman1-1/+1
2023-09-29Bump askama and askama_derive versionsLibravatar Dirkjan Ochtman1-1/+1
2023-09-29Add MSRV checking in CILibravatar Dirkjan Ochtman2-8/+3
Bump MSRV to 1.65 for the use of let .. else.
2023-08-01parser: import `parser::{Expr, Node}`Libravatar René Kijewski2-4/+4
2023-08-01parser: `node::Loop` is much bigger than the other variantsLibravatar René Kijewski1-8/+4
2023-08-01parser: add type for `Node::Comment`Libravatar René Kijewski1-5/+5
2023-08-01parser: remove re-exports `parser::{node,expr}::*`Libravatar René Kijewski3-5/+10
2023-08-01parser: add type for `Node::Extends`Libravatar René Kijewski2-3/+3
2023-08-01parser: add type for `Node::Include`Libravatar René Kijewski1-8/+7
2023-08-01parser: rename `Node::Cond` into `If` and add typeLibravatar René Kijewski2-10/+9
2023-08-01parser: add type for `Node::Let`Libravatar René Kijewski1-31/+19
2023-08-01parser: add type for `Node::Raw`Libravatar René Kijewski1-4/+4
2023-08-01parser: add type for `Node::Lit`Libravatar René Kijewski1-6/+7
2023-08-01parser: add type for `Node::BlockDef`Libravatar René Kijewski2-34/+13
2023-08-01parser: add type for `Node::Match`Libravatar René Kijewski2-9/+13
2023-08-01parser: add type for `Node::Call`Libravatar René Kijewski1-7/+10
2023-08-01parser: add type for `Node::Import`Libravatar René Kijewski2-8/+8
2023-08-01parser: let `Macro` know its nameLibravatar René Kijewski2-4/+4
2023-07-31parser: rename block to nodesLibravatar Dirkjan Ochtman2-6/+8
2023-07-31parser: define a struct for MatchLibravatar Dirkjan Ochtman2-6/+5
2023-07-31parser: define a struct for CondLibravatar Dirkjan Ochtman2-6/+6
2023-07-31Extract askama_parser crateLibravatar Dirkjan Ochtman10-2059/+7
2023-07-31derive: move whitespace conversion into config moduleLibravatar Dirkjan Ochtman2-12/+11
2023-07-31derive: move Parsed into parser moduleLibravatar Dirkjan Ochtman2-36/+35
2023-07-31derive: move generator-specific methods out of ExprLibravatar Dirkjan Ochtman2-73/+71
2023-07-31derive: define separate ParseError typeLibravatar Dirkjan Ochtman4-9/+32
2023-07-31derive: move Syntax into parser moduleLibravatar Dirkjan Ochtman5-40/+38
2023-07-24Fix Rust macro invocations not accepting a path (#837)Libravatar Matthew Taylor3-17/+72
2023-06-28Cache include AST to reduce parsing overheadLibravatar Dirkjan Ochtman1-23/+16
2023-06-28Inline child() method to avoid borrowing all fieldsLibravatar Dirkjan Ochtman1-27/+23
2023-06-28Avoid reparsing included templates if possibleLibravatar Dirkjan Ochtman1-4/+23
2023-06-28Parse templates onceLibravatar Dirkjan Ochtman3-18/+45
2023-06-12Allow macros to be defined and called without argumentsLibravatar mataha1-2/+5
This commit introduces a shorthand for defining and calling macros when using them as a reusable substitute for variables assigned complex values (e.g. string literals with or without newline escapes). The use-case is formatting - from my experience it's easier to visually parse a `macro` `endmacro` block than a multiline variable assignment. Signed-off-by: mataha <mataha@users.noreply.github.com>
2023-05-31Allow delimiters with arbitrary lengthLibravatar René Kijewski1-16/+94
2023-05-19Update to rocket 0.5-rc.3Libravatar Vypo Mouse1-6/+15
2023-03-21Extract literal from group expressions in attributesLibravatar Dirkjan Ochtman1-0/+6
2023-03-21Version bump askama_derive to 0.12.1Libravatar Dirkjan Ochtman1-1/+1
2023-03-20Upgrade to syn 2Libravatar Dirkjan Ochtman2-28/+27
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 Gomez2-17/+39
2023-03-09Fix handling of trailing whitespace charactersLibravatar Guillaume Gomez2-4/+19
2023-03-06Propogate size_hint from sub-blocks (#788)Libravatar Andrew Dona-Couch -- GitHub drop ICE1-4/+4
Closes #786
2023-03-03exchange hyper features From<Template> for hyper::Body with TryFromLibravatar Rudi Floren1-7/+5
The previous implementation hid the error returned by render, which made it impossible for callers to react to rendering errors. While having a simple way to call into would be nice, there is not way to have both implementations without adding any manual specialization. Thus, the From impl is replaced by the TryFrom impl.
2023-02-24Fix typosLibravatar René Kijewski2-13/+13
2023-02-21Revert "derive: Make Config `'static`"Libravatar René Kijewski6-69/+74
2023-02-21Replace `toml_edit` with `basic-toml`Libravatar René Kijewski2-3/+3