Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | updated for actix-web 4.0.0-beta.14 | 2021-12-14 | 1 | -1/+2 | |
| | |||||
* | Use char for patterns where possible | 2021-12-08 | 1 | -1/+1 | |
| | |||||
* | Update axum to 0.4 (by switching to axum-core) | 2021-12-05 | 1 | -5/+3 | |
| | |||||
* | Move askama_mendes integration into Askama repo (#561) | 2021-12-01 | 1 | -2/+2 | |
| | |||||
* | Allow whitespace trimming in {{raw}} blocks | 2021-11-29 | 1 | -2/+2 | |
| | |||||
* | Add Axum integration | 2021-11-27 | 1 | -0/+18 | |
| | |||||
* | Added support for optional escaper for escape filter (resolves #556) | 2021-11-19 | 1 | -2/+36 | |
| | |||||
* | Implement `for … in … if …` | 2021-11-11 | 1 | -29/+27 | |
| | |||||
* | Implement for-else | 2021-11-11 | 1 | -17/+26 | |
| | | | | | | | | | | | | | This PR implements for-else statements like in Jinja. They make it easy to print an alternative message if the loop iterator was empty. E.g. ```rs {% for result in result %} <li>{{ result }}</li> {% else %} <li><em>no results</em></li> {% endfor %} ``` | ||||
* | Prepare for actix-web v4 (#553) | 2021-11-11 | 1 | -4/+2 | |
| | |||||
* | Implement {{loop.cycle(…)}} similar to Jinja | 2021-11-11 | 1 | -7/+30 | |
| | |||||
* | Fix support for raw method identifiers | 2021-10-13 | 1 | -1/+1 | |
| | |||||
* | Add {% break %} and {% continue %} | 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 | 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 | 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 | 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 | 2021-07-05 | 1 | -3/+3 | |
| | |||||
* | Reduce code duplication for writing targets | 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 | 2021-07-05 | 1 | -23/+33 | |
| | |||||
* | Remove needless deref, only to ref it a few lines down | 2021-07-05 | 1 | -4/+4 | |
| | |||||
* | Remove duplicated code in generator | 2021-07-05 | 1 | -17/+1 | |
| | |||||
* | Prepare generator::visit_target() for nested targets | 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 | 2021-07-01 | 1 | -49/+69 | |
| | |||||
* | Implement "if let" statement | 2021-07-01 | 1 | -12/+27 | |
| | |||||
* | Use "if let Some(_)" instead of match | 2021-07-01 | 1 | -21/+18 | |
| | |||||
* | Move visit_match_params into its own method | 2021-07-01 | 1 | -38/+42 | |
| | |||||
* | Fixed loop generator when accessing field (fixes 494) | 2021-06-23 | 1 | -0/+6 | |
| | |||||
* | Fix code generation for macro calls that store args in variables. | 2021-06-22 | 1 | -1/+4 | |
| | |||||
* | Support rocket 0.5.0-rc.1 based on @flo-l's PR (#495) | 2021-06-15 | 1 | -4/+2 | |
| | | | See #412 for earlier iteration. | ||||
* | Fix needless borrowing | 2021-06-14 | 1 | -5/+5 | |
| | |||||
* | Fixed not found in scope error | 2021-04-29 | 1 | -1/+1 | |
| | |||||
* | Use raw identifiers for identifiers which collide with Rust keywords (#476) | 2021-04-21 | 1 | -4/+84 | |
| | | | Co-authored-by: Daniel Arbuckle <djarb@highenergymagic.org> | ||||
* | Eliminate common tails from branches | 2021-04-13 | 1 | -4/+2 | |
| | |||||
* | askama_tide: suppress clippy::from-over-into lint | 2021-03-30 | 1 | -0/+2 | |
| | |||||
* | Use mem::take() where applicable | 2021-03-30 | 1 | -2/+2 | |
| | |||||
* | Refactored getting path extension | 2021-03-10 | 1 | -35/+8 | |
| | |||||
* | Reworked constants to be parsed as paths | 2021-02-23 | 1 | -5/+2 | |
| | |||||
* | Rename askama_actix trait method as suggested by clippy | 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 | 2021-02-15 | 1 | -4/+6 | |
| | |||||
* | Bring Ws type name in line with API guidelines | 2021-02-01 | 1 | -18/+18 | |
| | |||||
* | Fixed constants (fixes #291) | 2021-01-13 | 1 | -2/+5 | |
| | |||||
* | Removed implicit borrowing of literals, calls, and more (fixes #404) | 2021-01-05 | 1 | -3/+10 | |
| | |||||
* | Added tojson alias | 2020-12-30 | 1 | -1/+5 | |
| | |||||
* | Fixed yaml filter generation | 2020-12-29 | 1 | -1/+1 | |
| | |||||
* | Refactored into filters constant | 2020-12-29 | 1 | -8/+6 | |
| | |||||
* | Added error to hint enabling serde features | 2020-12-29 | 1 | -0/+9 | |
| | |||||
* | Added support for redefining variables (fixes #329) | 2020-12-25 | 1 | -5/+34 | |
| | |||||
* | Improved implicit borrowing and changed to resolve Askama variables at ↵ | 2020-12-21 | 1 | -49/+127 | |
| | | | | compile time | ||||
* | Improved template loop generation (fixes #107, #333) | 2020-12-16 | 1 | -1/+19 | |
| | |||||
* | Merge pull request #400 from djc/local | 2020-12-15 | 1 | -2/+2 | |
|\ | | | | | Sync local repo with GitHub |