Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Apply clippy suggestions for 1.67 (#769) | 2023-01-30 | 1 | -3/+3 | |
| | |||||
* | chore: remove allow(clippy::disallowed_names) | 2022-11-07 | 1 | -1/+1 | |
| | |||||
* | chore: apply clippy suggestions for 1.65 | 2022-11-07 | 1 | -1/+1 | |
| | |||||
* | Use a separate trait for object safety (#579) | 2021-12-15 | 1 | -5/+2 | |
| | | | | | | | | | | | | | | | | | | This is relatively major change to the main trait's API. For context, I always started from the concept of monomorphized traits, but later several contributors asked about object safety. At that point I made `Template` object-safe, and then even later added a `SizedTemplate` to make some things easier for people who don't need object safety. However, having object-safety in the primary trait is bad for performance (a substantial number of calls into the virtual `Write` trait is relatively slow), and I don't think those who don't need object safety should pay for the cost of having it. Additionally, I feel using associated consts for the extension and size hint is more idiomatic than having accessor methods. I don't know why I didn't use these from the start -- maybe associated consts didn't exist yet, or I didn't yet know how/when to use them. Askama is pretty old at this point... | ||||
* | Allow whitespace trimming in {{raw}} blocks | 2021-11-29 | 1 | -0/+10 | |
| | |||||
* | Remove forward-slash escape (#486) | 2021-05-17 | 1 | -5/+2 | |
| | | | | | | | | | | | | | | | This was based off of the OWASP XSS prevention cheat sheet -- https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html#output-encoding-rules-summary However, there isn't really any attack vector based on forward slash alone, and it's being removed in the next version of that document. > There is no proof that escaping forward slash will improve > defense against XSS, if all other special characters are escaped > properly, but it forces developers to use non-standard implementation of > the HTML escaping, what increases the risk of the mistake and makes the > implementation harder. https://github.com/OWASP/CheatSheetSeries/pull/516 | ||||
* | Added option test | 2021-02-22 | 1 | -0/+16 | |
| | |||||
* | Added constants test | 2021-01-13 | 1 | -0/+30 | |
| | |||||
* | Removed implicit borrowing of literals, calls, and more (fixes #404) | 2021-01-05 | 1 | -4/+4 | |
| | |||||
* | Allow paths to start with `::` (#393) | 2020-12-02 | 1 | -0/+9 | |
| | |||||
* | Fix taking references of function arguments (fixes #311) | 2020-04-23 | 1 | -0/+10 | |
| | |||||
* | Fixed clippy warnings | 2020-03-18 | 1 | -0/+2 | |
| | |||||
* | Use _visit_args in var/path calls | 2020-03-18 | 1 | -3/+3 | |
| | |||||
* | Support function calls | 2020-03-18 | 1 | -0/+37 | |
| | |||||
* | Add support for warp | 2020-01-29 | 1 | -1/+2 | |
| | |||||
* | Support escaping in string literals | 2020-01-12 | 1 | -0/+13 | |
| | | | | | | Do not attempt to parse escape sequences thoroughly. Instead let the Rust compiler to check the string literals and provide nice error messages if necessary. | ||||
* | Support char literals | 2020-01-03 | 1 | -1/+1 | |
| | |||||
* | Clean up clippy warnings | 2020-01-02 | 1 | -0/+2 | |
| | |||||
* | Fix formatting with cargo fmt | 2019-11-04 | 1 | -1/+4 | |
| | |||||
* | Moved no-receiver size_hint method to a separate trait (#270) | 2019-10-28 | 1 | -2/+2 | |
| | |||||
* | Add support for boolean literals | 2019-10-08 | 1 | -1/+1 | |
| | |||||
* | WIP: Add raw block | 2019-04-18 | 1 | -0/+23 | |
| | |||||
* | Use 2018 edition idioms | 2018-12-08 | 1 | -2/+0 | |
| | |||||
* | Remove unused macro_use attributes | 2018-12-08 | 1 | -1/+0 | |
| | |||||
* | Fix cargo fmt | 2018-12-07 | 1 | -4/+1 | |
| | |||||
* | Add e2e test for escape | 2018-11-11 | 1 | -0/+16 | |
| | |||||
* | use UFCS in derived code | 2018-11-04 | 1 | -0/+12 | |
| | |||||
* | Add test for unescaped variable expressions (see #132) | 2018-10-20 | 1 | -0/+24 | |
| | |||||
* | make `Template::extension()` static | 2018-10-12 | 1 | -1/+1 | |
| | | | | | It is useful for calculating the media type without instantiating the context value. | ||||
* | Update formatting for rust 1.29.0 rustfmt | 2018-09-14 | 1 | -2/+8 | |
| | |||||
* | Add Template method to return template extension | 2018-07-22 | 1 | -0/+1 | |
| | | | | Thanks to Ryan McGrath for the suggestion and initial implementation. | ||||
* | Add test for unit structs (see #101) | 2018-07-04 | 1 | -0/+9 | |
| | |||||
* | Remove accidental debugging cruft | 2018-06-23 | 1 | -1/+1 | |
| | |||||
* | Add test for Index operation | 2018-06-23 | 1 | -0/+16 | |
| | |||||
* | Fix formatting with cargo fmt | 2018-06-21 | 1 | -21/+21 | |
| | |||||
* | Add test for unary - operator | 2018-04-27 | 1 | -0/+13 | |
| | |||||
* | Add test for ! operator (see #83) | 2018-04-27 | 1 | -0/+13 | |
| | |||||
* | Properly handle whitespace around comments (fixes #79) | 2018-04-17 | 1 | -0/+11 | |
| | |||||
* | Apply suggestions from rustfmt to improve style | 2017-11-21 | 1 | -7/+8 | |
| | |||||
* | Make empty string literals work | 2017-10-22 | 1 | -2/+2 | |
| | |||||
* | Add support for array literals (fixes #59) | 2017-10-20 | 1 | -0/+11 | |
| | |||||
* | Add test for path expressions (see #56) | 2017-10-04 | 1 | -0/+18 | |
| | |||||
* | Add support for tuple indexing in templates | 2017-09-10 | 1 | -0/+12 | |
| | |||||
* | Move JSON test into filters test module | 2017-09-07 | 1 | -28/+1 | |
| | |||||
* | Move escaping tests into a separate module | 2017-09-07 | 1 | -52/+0 | |
| | |||||
* | Add test case for inferred escape mode | 2017-09-07 | 1 | -0/+13 | |
| | |||||
* | Make ext attribute mandatory for source-specified templates | 2017-09-07 | 1 | -3/+3 | |
| | |||||
* | Add some tests for escaping functionality | 2017-09-05 | 1 | -0/+39 | |
| | |||||
* | Adding optional json filter | 2017-08-23 | 1 | -4/+18 | |
| | |||||
* | Implement Display for all Templates | 2017-08-10 | 1 | -0/+13 | |
| |