aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-12-16Improved template loop generation (fixes #107, #333)Libravatar vallentin1-1/+19
2020-12-12Fixed whitespace issue when generating match (#399)Libravatar Christian Vallentin3-23/+28
* Fixed #397 * Updated parser to ignore whitespace between match and when * Updated test cases * Updated Python script to generate match ws tests * Added match ws tests * Resolved rustfmt lint
2020-12-03Fixed whitespace issue when generating if statement (#394)Libravatar Christian Vallentin1-5/+6
* Fixed #377
2020-12-02Allow paths to start with `::` (#393)Libravatar Christian Vallentin1-4/+25
2020-12-01Improved if statement generation to avoid issues with implicit borrows (#392)Libravatar Christian Vallentin1-0/+7
* Changed to automatically coerce to bool * Added new test case * Updated test case to include else if
2020-12-01Fixed parsing precedence and associativity (#391)Libravatar Christian Vallentin1-33/+173
2020-12-01Fixed implicit borrow of expressions (#390)Libravatar Christian Vallentin1-2/+3
2020-11-21Disable nom default featuresLibravatar Konrad Borowski1-3/+1
This removes unnecessary lexical feature reducing amount of crates Askama depends on.
2020-11-19Bump version for askama_sharedLibravatar Dirkjan Ochtman1-1/+1
2020-11-19Adapt to changed mendes APILibravatar Dirkjan Ochtman1-2/+2
2020-11-17Bump versions to fix semver problemLibravatar Dirkjan Ochtman1-1/+1
2020-11-16Bump version for askama_sharedLibravatar Dirkjan Ochtman1-1/+1
2020-11-16Fix urlencode to be usable for URL segments and query keys/values (#384)Libravatar Jakub Valtar1-30/+88
2020-11-13Correctly scope macro argument name bindings (fixes #382)Libravatar Dirkjan Ochtman1-3/+12
2020-11-02Improve error handling (see #368)Libravatar Dirkjan Ochtman5-418/+554
2020-11-02Apply clippy suggestionsLibravatar Dirkjan Ochtman1-2/+2
2020-11-02Upgrade to nom 6Libravatar Dirkjan Ochtman2-37/+38
2020-09-16fix into_f64 and into_isizeLibravatar Yuxuan Shui1-13/+13
askama passes references to the filters (e.g. &f64), and &f64 doesn't implement NumCast, only f64 does. So, the filters should take &T instead of T. Fixes #357 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2020-08-25Use unstable sort for size median calculationLibravatar Dirkjan Ochtman1-1/+1
2020-07-28Bump version numbersLibravatar Dirkjan Ochtman1-1/+1
2020-07-28Add mendes integrationLibravatar Dirkjan Ochtman2-0/+52
2020-07-28Use modern dyn syntax to prevent warningsLibravatar Dirkjan Ochtman1-1/+1
2020-07-23Point to relevant book chapter from the filters module docsLibravatar Dirkjan Ochtman1-2/+2
2020-07-20Clean up clippy issuesLibravatar Dirkjan Ochtman1-8/+7
2020-07-14Add fmt filter that swaps the first two arguments to format!().Libravatar Andrew Dona-Couch2-1/+41
This allows a more natural filter usage: `{{ val | fmt("{:?}") }}` as well as enabling convenient filter composition: `{{ price | to_f64 | fmt("${:.2}") | center }}`
2020-07-14Bump versions to prepare for askama_tide releaseLibravatar Dirkjan Ochtman1-1/+1
2020-07-14alphabetize frameworksLibravatar Jacob Rothstein2-57/+58
2020-07-14askama tideLibravatar Jacob Rothstein2-0/+30
2020-06-30Bump askama_shared version with whitespace fixesLibravatar Dirkjan Ochtman1-1/+1
2020-06-30Add support for more whitespace positions within expressions:Libravatar Ciprian Dorin Craciun1-11/+20
* in function calls: `x ( 1 , 2 )`; * in path elements: `module :: element`; * in attributes: `x . y . z`; * in filter arguments: `x| filter ( 1 , 2 )`; * before unary operators: `! false` and `- 42`; * in grouped expressions: `( 1 + 2 )`; * also allow more than a single whitespace; Change some tests to include whitespaces in various positions.
2020-06-30Bump version number for askama_sharedLibravatar Dirkjan Ochtman1-1/+1
2020-06-30Tweak dependency on futures for Actix integrationLibravatar Dirkjan Ochtman1-2/+2
2020-06-30Reference READMEs in crate metadataLibravatar Dirkjan Ochtman1-0/+1
2020-06-30Add README files for subcratesLibravatar Dirkjan Ochtman1-0/+9
2020-06-30Bump version numbersLibravatar Dirkjan Ochtman1-2/+2
2020-06-30Add license files to each crate (fixes #339)Libravatar Dirkjan Ochtman2-0/+2
2020-06-24Remove redundant cloneLibravatar Dirkjan Ochtman1-1/+1
2020-06-03Reorder parser type definitionsLibravatar Dirkjan Ochtman1-46/+46
2020-06-03Revert whitespace matching to old macro behaviorLibravatar Dirkjan Ochtman1-6/+8
2020-06-03Strip 0 or more instead of 1 whitespace character (fixes #337)Libravatar Dirkjan Ochtman1-2/+2
2020-06-03Allow block definitions in if/for/match blocks (fixes #335)Libravatar Dirkjan Ochtman2-9/+14
2020-06-03Refactor code for finding nested blocksLibravatar Dirkjan Ochtman1-32/+27
2020-05-21Cast empty arrays to slice to get around clippyLibravatar Dirkjan Ochtman1-3/+2
2020-05-21Allow clippy reversed-empty-ranges for nowLibravatar Dirkjan Ochtman1-0/+1
Pending https://github.com/rust-lang/rust-clippy/issues/5628.
2020-05-17Remove now unused match armsLibravatar Dirkjan Ochtman1-2/+0
2020-05-17Properly annotate non-exhaustive enumLibravatar Dirkjan Ochtman1-6/+1
2020-04-25Fix wrong num_traits cfg feature in askama_sharedLibravatar Jerome Gravel-Niquet1-8/+8
2020-04-23Fix formatting with cargo fmtLibravatar Dirkjan Ochtman1-4/+1
2020-04-23Fix clippy suggestionLibravatar Dirkjan Ochtman1-1/+1
2020-04-23Fix taking references of function arguments (fixes #311)Libravatar Dirkjan Ochtman1-6/+20