Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add {% break %} and {% continue %} | René Kijewski | 2021-08-30 | 1 | -0/+10 |
| | | | | | This PR adds `{% break %}` and `{% continue %}` statements to break out of a loop, or continue with the next element of the iterator. | ||||
* | Parse boolean literals in assignment targets | René Kijewski | 2021-08-25 | 1 | -0/+6 |
| | | | | | | | | 268d825 introduced a regression that made matching against boolean literals impossible. E.g. "true" was interpreted as the variable "r#true". This PR fixes the problem. The bug was reported by @Restioson in issue #531. | ||||
* | Use "target()" to parse "when" block | René Kijewski | 2021-07-30 | 1 | -102/+42 |
| | | | | | | | | | | | | `target()` as used in parsing "let" and "if let" implements parsing nested tuples and structs. But it does not implement parsing literals. The functions `match_variant()` and `with_parameters()` as used in parsing "when" blocks do not implement parsing nested structs, but it implements parsing literals. This PR combines `match_variant()` and `with_parameters()` into `target()`, so that all `{%when%}` support nested structs, too. | ||||
* | Implement destructoring of structs | René Kijewski | 2021-07-05 | 1 | -2/+17 |
| | | | | | This PR implements the destructoring of structs on the lhs of "let" and "for" statements. | ||||
* | Parse nested tuples in "let" statement lhs | René Kijewski | 2021-07-05 | 1 | -3/+3 |
| | |||||
* | Reduce code duplication for writing targets | René Kijewski | 2021-07-05 | 1 | -22/+9 |
| | | | | | This change also fixes a bug in the loop generator, which failed for shadowed variables. | ||||
* | Move logic where target shadows or declares a variable into method | René Kijewski | 2021-07-05 | 1 | -23/+33 |
| | |||||
* | Remove needless deref, only to ref it a few lines down | René Kijewski | 2021-07-05 | 1 | -4/+4 |
| | |||||
* | Remove duplicated code in generator | René Kijewski | 2021-07-05 | 1 | -17/+1 |
| | |||||
* | Prepare generator::visit_target() for nested targets | René Kijewski | 2021-07-05 | 1 | -4/+2 |
| | | | | | | | | By now only non-nested tuples are accepted by the parser, but this will change. This change makes visit_target() call itself for items in a tuple. So enable the function to call itself, I needed to fix the lifetime annotation, because the references inside a Target instance may outlife a reference to instance itself. | ||||
* | Stop eliding lifetimes in paths | Dirkjan Ochtman | 2021-07-01 | 1 | -49/+69 |
| | |||||
* | Implement "if let" statement | René Kijewski | 2021-07-01 | 1 | -12/+27 |
| | |||||
* | Use "if let Some(_)" instead of match | René Kijewski | 2021-07-01 | 1 | -21/+18 |
| | |||||
* | Move visit_match_params into its own method | René Kijewski | 2021-07-01 | 1 | -38/+42 |
| | |||||
* | Fixed loop generator when accessing field (fixes 494) | vallentin | 2021-06-23 | 1 | -0/+6 |
| | |||||
* | Fix code generation for macro calls that store args in variables. | Ryan Kelly | 2021-06-22 | 1 | -1/+4 |
| | |||||
* | Support rocket 0.5.0-rc.1 based on @flo-l's PR (#495) | Shritesh Bhattarai | 2021-06-15 | 1 | -4/+2 |
| | | | See #412 for earlier iteration. | ||||
* | Fix needless borrowing | Dirkjan Ochtman | 2021-06-14 | 1 | -5/+5 |
| | |||||
* | Fixed not found in scope error | vallentin | 2021-04-29 | 1 | -1/+1 |
| | |||||
* | Use raw identifiers for identifiers which collide with Rust keywords (#476) | SciStarterOwner | 2021-04-21 | 1 | -4/+84 |
| | | | Co-authored-by: Daniel Arbuckle <djarb@highenergymagic.org> | ||||
* | Eliminate common tails from branches | Dirkjan Ochtman | 2021-04-13 | 1 | -4/+2 |
| | |||||
* | askama_tide: suppress clippy::from-over-into lint | Dirkjan Ochtman | 2021-03-30 | 1 | -0/+2 |
| | |||||
* | Use mem::take() where applicable | Dirkjan Ochtman | 2021-03-30 | 1 | -2/+2 |
| | |||||
* | Refactored getting path extension | vallentin | 2021-03-10 | 1 | -35/+8 |
| | |||||
* | Reworked constants to be parsed as paths | vallentin | 2021-02-23 | 1 | -5/+2 |
| | |||||
* | Rename askama_actix trait method as suggested by clippy | Dirkjan Ochtman | 2021-02-15 | 1 | -2/+2 |
| | | | | | By bumping the dependency versions for askama and askama_shared, this should be safe. | ||||
* | Fix formatting for rust 1.50.0 | Dirkjan Ochtman | 2021-02-15 | 1 | -4/+6 |
| | |||||
* | Bring Ws type name in line with API guidelines | Dirkjan Ochtman | 2021-02-01 | 1 | -18/+18 |
| | |||||
* | Fixed constants (fixes #291) | vallentin | 2021-01-13 | 1 | -2/+5 |
| | |||||
* | Removed implicit borrowing of literals, calls, and more (fixes #404) | vallentin | 2021-01-05 | 1 | -3/+10 |
| | |||||
* | Added tojson alias | vallentin | 2020-12-30 | 1 | -1/+5 |
| | |||||
* | Fixed yaml filter generation | vallentin | 2020-12-29 | 1 | -1/+1 |
| | |||||
* | Refactored into filters constant | vallentin | 2020-12-29 | 1 | -8/+6 |
| | |||||
* | Added error to hint enabling serde features | vallentin | 2020-12-29 | 1 | -0/+9 |
| | |||||
* | Added support for redefining variables (fixes #329) | vallentin | 2020-12-25 | 1 | -5/+34 |
| | |||||
* | Improved implicit borrowing and changed to resolve Askama variables at ↵ | vallentin | 2020-12-21 | 1 | -49/+127 |
| | | | | compile time | ||||
* | Improved template loop generation (fixes #107, #333) | vallentin | 2020-12-16 | 1 | -1/+19 |
| | |||||
* | Merge pull request #400 from djc/local | Dirkjan Ochtman | 2020-12-15 | 1 | -2/+2 |
|\ | | | | | Sync local repo with GitHub | ||||
| * | Adapt to changed mendes API | Dirkjan Ochtman | 2020-11-19 | 1 | -2/+2 |
| | | |||||
* | | Fixed whitespace issue when generating match (#399) | Christian Vallentin | 2020-12-12 | 1 | -15/+22 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | ||||
* | | Fixed whitespace issue when generating if statement (#394) | Christian Vallentin | 2020-12-03 | 1 | -5/+6 |
| | | | | | | * Fixed #377 | ||||
* | | Improved if statement generation to avoid issues with implicit borrows (#392) | Christian Vallentin | 2020-12-01 | 1 | -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) | Christian Vallentin | 2020-12-01 | 1 | -2/+3 |
|/ | |||||
* | Correctly scope macro argument name bindings (fixes #382) | Dirkjan Ochtman | 2020-11-13 | 1 | -3/+12 |
| | |||||
* | Improve error handling (see #368) | Dirkjan Ochtman | 2020-11-02 | 1 | -306/+383 |
| | |||||
* | Use unstable sort for size median calculation | Dirkjan Ochtman | 2020-08-25 | 1 | -1/+1 |
| | |||||
* | Add mendes integration | Dirkjan Ochtman | 2020-07-28 | 1 | -0/+51 |
| | |||||
* | Use modern dyn syntax to prevent warnings | Dirkjan Ochtman | 2020-07-28 | 1 | -1/+1 |
| | |||||
* | Clean up clippy issues | Dirkjan Ochtman | 2020-07-20 | 1 | -8/+7 |
| | |||||
* | Add fmt filter that swaps the first two arguments to format!(). | Andrew Dona-Couch | 2020-07-14 | 1 | -0/+18 |
| | | | | | | This allows a more natural filter usage: `{{ val | fmt("{:?}") }}` as well as enabling convenient filter composition: `{{ price | to_f64 | fmt("${:.2}") | center }}` |