aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-10-20Tighten up parser code for path expressionsLibravatar Dirkjan Ochtman1-4/+2
2017-10-20Add support for array literals (fixes #59)Libravatar Dirkjan Ochtman2-0/+31
2017-10-15Add some whitespace to write_call()Libravatar Dirkjan Ochtman1-0/+3
2017-10-15Wrap some overly long linesLibravatar Dirkjan Ochtman1-2/+5
2017-10-15Add scope when importing macrosLibravatar Lars Erik Rosengren3-24/+39
2017-10-14Remove spurious call to dedent()Libravatar Dirkjan Ochtman1-1/+0
2017-10-14Add panic to make sure indentation mismatches are detectedLibravatar Dirkjan Ochtman1-0/+3
2017-10-04Handle path expressions (fixes #56)Libravatar Dirkjan Ochtman2-0/+29
2017-10-01Add a clarifying comment about whitespace in write_call()Libravatar Dirkjan Ochtman1-1/+1
2017-10-01Add comment explaining why Extends doesn't need whitespace handlingLibravatar Dirkjan Ochtman1-0/+2
2017-10-01Fix whitespace handling for macros and imports (#55)Libravatar larros1-4/+16
Resolves https://github.com/djc/askama/issues/52. * Fix of review comments
2017-09-26Rename parse() method to macro_map()Libravatar Dirkjan Ochtman1-1/+1
2017-09-26Improve code compactnessLibravatar Dirkjan Ochtman1-5/+2
2017-09-26Insert macro parameter into locals after defining it (fixes #53)Libravatar Dirkjan Ochtman1-1/+1
2017-09-26Add support for importing template files with macros (#51)Libravatar larros3-4/+62
* Fix review comments for macro imports
2017-09-10Add support for tuple indexing in templatesLibravatar Lars Erik Rosengren1-3/+7
2017-09-07Rename and document top-level Generator::build() methodLibravatar Dirkjan Ochtman1-2/+3
2017-09-07Reorder methods in Generator to aid readabilityLibravatar Dirkjan Ochtman1-450/+450
2017-09-07Rewrite escapable() to prevent duplicationLibravatar Dirkjan Ochtman1-3/+6
2017-09-07Extend escaping according to OWASP recommendationsLibravatar Dirkjan Ochtman1-2/+5
2017-09-07Return MarkupDisplay from json filterLibravatar Dirkjan Ochtman2-6/+11
2017-09-07Infer escaping mode based on template extensionLibravatar Dirkjan Ochtman1-3/+21
2017-09-07Refactor creation of TemplateMeta valueLibravatar Dirkjan Ochtman1-13/+9
2017-09-07Make ext attribute mandatory for source-specified templatesLibravatar Dirkjan Ochtman1-4/+8
2017-09-06Code cleanups as suggested by ClippyLibravatar Dirkjan Ochtman4-30/+30
2017-09-06Decrease coupling with Rocket in generated codeLibravatar Dirkjan Ochtman1-10/+2
2017-09-06Allow setting an extension with source attributesLibravatar Dirkjan Ochtman1-2/+22
2017-09-06Make path and source attributes mutually exclusiveLibravatar Dirkjan Ochtman1-0/+6
2017-09-06Add panics during code generation for unsupported casesLibravatar Dirkjan Ochtman1-9/+21
2017-09-05Allow includes to use relative pathsLibravatar Dirkjan Ochtman1-1/+1
2017-09-05Refactor type handling for attribute parametersLibravatar Dirkjan Ochtman1-8/+8
2017-09-05Introduce attribute parameter to disable escapingLibravatar Dirkjan Ochtman2-6/+34
2017-09-05Move knowledge of what to generate into GeneratorLibravatar Dirkjan Ochtman1-30/+25
2017-09-05Extract generator::State type to clarify structureLibravatar Dirkjan Ochtman2-98/+120
2017-09-05Move TemplateInput and related code into separate moduleLibravatar Dirkjan Ochtman2-104/+110
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.