aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-09-05Create new TemplateInput abstractionLibravatar Dirkjan Ochtman1-13/+27
2017-09-05Create better abstraction around TemplateMeta typeLibravatar Dirkjan Ochtman1-48/+48
2017-09-05Pass AST to code generator as referenceLibravatar Dirkjan Ochtman2-2/+2
2017-09-05Stop mutating parsed AST for code generationLibravatar Dirkjan Ochtman2-26/+20
2017-09-05Refactor code generation for block definitionsLibravatar Dirkjan Ochtman1-21/+24
2017-09-05Refactor handling of macrosLibravatar Dirkjan Ochtman2-16/+26
2017-09-05Move tightly coupled code from derive to shared crateLibravatar Dirkjan Ochtman1-2/+111
2017-09-05Raise 500 error instead of unwrapping in Rocket Responder implLibravatar Dirkjan Ochtman1-3/+7
2017-09-05Remove warning, since BUILT_IN_FILTERS is now in the same moduleLibravatar Dirkjan Ochtman1-2/+0
2017-09-04Escape all strings with character entities by default (fixes #23)Libravatar Dirkjan Ochtman4-21/+107
2017-09-04Move escaping algorithm into a separate moduleLibravatar Dirkjan Ochtman3-43/+54
2017-09-04Move filter list closer to the actual filters, add docsLibravatar Dirkjan Ochtman2-13/+19
2017-09-04Clean up and tighten faster version of expr_prec_layer macroLibravatar Dirkjan Ochtman1-15/+10
2017-09-04Tighten up code for join filter handlingLibravatar Dirkjan Ochtman1-8/+1
2017-09-03Changed implementation of precedence rulesLibravatar Lars Erik Rosengren1-6/+12
This implementation resolves djc/askama#44 by changing the precedence implementation. The previous solution was very slow because it had to try to parse all combinations of precedence layers leading to 2^9 iterations for each expr_any. This is solved by reusing the left operand instead of reparsing it when the operator isn't found. This implementation also solves another related issue that expressions with multiple operators couldn't be parsed, for example {{1 * 2 * 3}}. This is handled by using expr_any for the right operand instead of only using higher level precedence layers.
2017-09-02Add `join` filter & tests for itLibravatar defyrlt2-0/+71
2017-09-02Refactor `visit_filter` to allow easier customizationLibravatar defyrlt1-11/+21
2017-08-29Export Error typeLibravatar Anthony Nowell1-1/+1
2017-08-27Move most of the code into new askama_shared crateLibravatar Dirkjan Ochtman11-0/+1483
This makes it possible to share code between askama and askama_derive.