aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-11-20Improve macro call arguments loopLibravatar Guillaume Gomez1-4/+1
2023-11-20Improve output error for non-matching number of arguments for macrosLibravatar Guillaume Gomez1-1/+8
2023-11-09add support for svg file extensionLibravatar Marvin Jütte2-3/+9
2023-11-01Remove unused `_did_loop` condition if `else` block is emptyLibravatar Guillaume Gomez1-9/+21
2023-11-01Avoid passing around duplicate dataLibravatar Dirkjan Ochtman2-21/+4
2023-11-01Build Config from TemplateArgsLibravatar Dirkjan Ochtman2-9/+12
2023-11-01Reorganize TemplateArgs and TemplateInput structureLibravatar Dirkjan Ochtman2-25/+24
2023-11-01Inline some logic into find_used_templates()Libravatar Dirkjan Ochtman2-8/+8
2023-11-01Cleanup imports a bitLibravatar Dirkjan Ochtman3-6/+4
2023-11-01Implement Default for MapChainLibravatar Dirkjan Ochtman2-8/+10
2023-11-01Move build_template() up to the crate rootLibravatar Dirkjan Ochtman2-63/+67
2023-11-01Remove unnecessary type annotationLibravatar Dirkjan Ochtman1-1/+1
2023-11-01Attach find_used_templates() to TemplateInputLibravatar Dirkjan Ochtman2-44/+45
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-09-29Add MSRV checking in CILibravatar Dirkjan Ochtman1-7/+2
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 Ochtman9-2058/+6
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