aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src/generator.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fixed whitespace issue when generating if statement (#394)Libravatar Christian Vallentin2020-12-031-5/+6
| | | * Fixed #377
* Improved if statement generation to avoid issues with implicit borrows (#392)Libravatar Christian Vallentin2020-12-011-0/+7
| | | | | | | * Changed to automatically coerce to bool * Added new test case * Updated test case to include else if
* Fixed implicit borrow of expressions (#390)Libravatar Christian Vallentin2020-12-011-2/+3
|
* Correctly scope macro argument name bindings (fixes #382)Libravatar Dirkjan Ochtman2020-11-131-3/+12
|
* Improve error handling (see #368)Libravatar Dirkjan Ochtman2020-11-021-306/+383
|
* Use unstable sort for size median calculationLibravatar Dirkjan Ochtman2020-08-251-1/+1
|
* Add mendes integrationLibravatar Dirkjan Ochtman2020-07-281-0/+51
|
* Use modern dyn syntax to prevent warningsLibravatar Dirkjan Ochtman2020-07-281-1/+1
|
* Clean up clippy issuesLibravatar Dirkjan Ochtman2020-07-201-8/+7
|
* Add fmt filter that swaps the first two arguments to format!().Libravatar Andrew Dona-Couch2020-07-141-0/+18
| | | | | | This allows a more natural filter usage: `{{ val | fmt("{:?}") }}` as well as enabling convenient filter composition: `{{ price | to_f64 | fmt("${:.2}") | center }}`
* alphabetize frameworksLibravatar Jacob Rothstein2020-07-141-56/+57
|
* askama tideLibravatar Jacob Rothstein2020-07-141-0/+29
|
* Tweak dependency on futures for Actix integrationLibravatar Dirkjan Ochtman2020-06-301-2/+2
|
* Allow block definitions in if/for/match blocks (fixes #335)Libravatar Dirkjan Ochtman2020-06-031-9/+1
|
* Fix taking references of function arguments (fixes #311)Libravatar Dirkjan Ochtman2020-04-231-6/+20
|
* Use _visit_args in var/path callsLibravatar Nathan Lapel2020-03-181-15/+8
|
* Support function callsLibravatar Nathan Lapel2020-03-181-0/+39
|
* Adapt to new warnings and formattingLibravatar Dirkjan Ochtman2020-02-081-2/+0
|
* Generalize hashmap parameter as suggested by clippyLibravatar Dirkjan Ochtman2020-01-291-8/+8
|
* Move code generation into askama_sharedLibravatar Dirkjan Ochtman2020-01-291-0/+1380
|
* Isolate proc-macro dependency to the proc macroLibravatar David Tolnay2018-04-121-919/+0
| | | | | | | | | The dependency of askama on askama_shared on syn on libproc_macro used to mean libproc_macro would be dynamically linked into any crate using askama. We want only askama_derive to have a runtime dependency on proc macro. This commit moves all proc macro code from askama_shared into askama_derive so that the askama crate no longer dynamically links libproc_macro.
* Handle a lack of whitespace after match block (fixes #76)Libravatar Dirkjan Ochtman2018-04-121-4/+6
|
* Fix whitespace handling for include blocks (fixes #69)Libravatar Dirkjan Ochtman2018-04-021-2/+2
|
* Cleanup warnings generated by clippyLibravatar Dirkjan Ochtman2018-01-221-8/+14
|
* Don't copy trait parameters to type generics (fixes #65)Libravatar Dirkjan Ochtman2018-01-211-2/+3
|
* Use push() instead of push_value() to add type parameters (fixes #65)Libravatar Dirkjan Ochtman2018-01-201-1/+1
| | | | | | push_value() requires taking care of the surrounding punctuation, which push() should handle for us. See this issue reported in syn: https://github.com/dtolnay/syn/issues/338
* infer Content-type from the file extension for iron integrationLibravatar Hajime Fukuda2018-01-191-0/+9
|
* Upgrade to syn-0.12 and quote-0.4Libravatar Dirkjan Ochtman2018-01-091-64/+25
|
* Make generated traits public for use in other modules (fixes #61)Libravatar Dirkjan Ochtman2017-12-251-1/+1
|
* Apply suggestions from rustfmt to improve styleLibravatar Dirkjan Ochtman2017-11-211-44/+50
|
* Limit line length to < 100 charactersLibravatar Dirkjan Ochtman2017-11-071-2/+4
|
* Add some documentation for whitespace suppression helpersLibravatar Dirkjan Ochtman2017-11-071-0/+8
|
* Support matching custom enumsLibravatar Anthony Nowell2017-11-021-5/+10
|
* Make match ref/deref as neededLibravatar Anthony Nowell2017-11-021-1/+24
| | | | | Much of this can be yanked out and made simpler when match-modes lands in stable
* support literals in match armsLibravatar Anthony Nowell2017-11-021-4/+20
|
* implement basic match functionalityLibravatar Anthony Nowell2017-11-021-1/+41
|
* Add support for array literals (fixes #59)Libravatar Dirkjan Ochtman2017-10-201-0/+13
|
* Add some whitespace to write_call()Libravatar Dirkjan Ochtman2017-10-151-0/+3
|
* Wrap some overly long linesLibravatar Dirkjan Ochtman2017-10-151-2/+5
|
* Add scope when importing macrosLibravatar Lars Erik Rosengren2017-10-151-10/+16
|
* Remove spurious call to dedent()Libravatar Dirkjan Ochtman2017-10-141-1/+0
|
* Add panic to make sure indentation mismatches are detectedLibravatar Dirkjan Ochtman2017-10-141-0/+3
|
* Handle path expressions (fixes #56)Libravatar Dirkjan Ochtman2017-10-041-0/+11
|
* Add a clarifying comment about whitespace in write_call()Libravatar Dirkjan Ochtman2017-10-011-1/+1
|
* Add comment explaining why Extends doesn't need whitespace handlingLibravatar Dirkjan Ochtman2017-10-011-0/+2
|
* Fix whitespace handling for macros and imports (#55)Libravatar larros2017-10-011-4/+16
| | | | | | Resolves https://github.com/djc/askama/issues/52. * Fix of review comments
* Insert macro parameter into locals after defining it (fixes #53)Libravatar Dirkjan Ochtman2017-09-261-1/+1
|
* Add support for importing template files with macros (#51)Libravatar larros2017-09-261-3/+7
| | | | * Fix review comments for macro imports
* Rename and document top-level Generator::build() methodLibravatar Dirkjan Ochtman2017-09-071-2/+3
|
* Reorder methods in Generator to aid readabilityLibravatar Dirkjan Ochtman2017-09-071-450/+450
|