Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | chore: apply clippy suggestions for 1.65 | Dirkjan Ochtman | 2022-11-07 | 1 | -1/+1 |
| | |||||
* | Use a separate trait for object safety (#579) | Dirkjan Ochtman | 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 | René Kijewski | 2021-11-29 | 1 | -0/+10 |
| | |||||
* | Remove forward-slash escape (#486) | Alex Wennerberg | 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 | vallentin | 2021-02-22 | 1 | -0/+16 |
| | |||||
* | Added constants test | vallentin | 2021-01-13 | 1 | -0/+30 |
| | |||||
* | Removed implicit borrowing of literals, calls, and more (fixes #404) | vallentin | 2021-01-05 | 1 | -4/+4 |
| | |||||
* | Allow paths to start with `::` (#393) | Christian Vallentin | 2020-12-02 | 1 | -0/+9 |
| | |||||
* | Fix taking references of function arguments (fixes #311) | Dirkjan Ochtman | 2020-04-23 | 1 | -0/+10 |
| | |||||
* | Fixed clippy warnings | Nathan Lapel | 2020-03-18 | 1 | -0/+2 |
| | |||||
* | Use _visit_args in var/path calls | Nathan Lapel | 2020-03-18 | 1 | -3/+3 |
| | |||||
* | Support function calls | Nathan Lapel | 2020-03-18 | 1 | -0/+37 |
| | |||||
* | Add support for warp | Bjørn Madsen | 2020-01-29 | 1 | -1/+2 |
| | |||||
* | Support escaping in string literals | Tuomas Siipola | 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 | Tuomas Siipola | 2020-01-03 | 1 | -1/+1 |
| | |||||
* | Clean up clippy warnings | Dirkjan Ochtman | 2020-01-02 | 1 | -0/+2 |
| | |||||
* | Fix formatting with cargo fmt | Dirkjan Ochtman | 2019-11-04 | 1 | -1/+4 |
| | |||||
* | Moved no-receiver size_hint method to a separate trait (#270) | jbg | 2019-10-28 | 1 | -2/+2 |
| | |||||
* | Add support for boolean literals | Dave Poulter | 2019-10-08 | 1 | -1/+1 |
| | |||||
* | WIP: Add raw block | Pavel Fokin | 2019-04-18 | 1 | -0/+23 |
| | |||||
* | Use 2018 edition idioms | Dirkjan Ochtman | 2018-12-08 | 1 | -2/+0 |
| | |||||
* | Remove unused macro_use attributes | Dirkjan Ochtman | 2018-12-08 | 1 | -1/+0 |
| | |||||
* | Fix cargo fmt | Juan Aguilar Santillana | 2018-12-07 | 1 | -4/+1 |
| | |||||
* | Add e2e test for escape | bott | 2018-11-11 | 1 | -0/+16 |
| | |||||
* | use UFCS in derived code | Yusuke Sasaki | 2018-11-04 | 1 | -0/+12 |
| | |||||
* | Add test for unescaped variable expressions (see #132) | Qian Linfeng | 2018-10-20 | 1 | -0/+24 |
| | |||||
* | make `Template::extension()` static | Yusuke Sasaki | 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 | Dirkjan Ochtman | 2018-09-14 | 1 | -2/+8 |
| | |||||
* | Add Template method to return template extension | Dirkjan Ochtman | 2018-07-22 | 1 | -0/+1 |
| | | | | Thanks to Ryan McGrath for the suggestion and initial implementation. | ||||
* | Add test for unit structs (see #101) | Dirkjan Ochtman | 2018-07-04 | 1 | -0/+9 |
| | |||||
* | Remove accidental debugging cruft | Dirkjan Ochtman | 2018-06-23 | 1 | -1/+1 |
| | |||||
* | Add test for Index operation | Dirkjan Ochtman | 2018-06-23 | 1 | -0/+16 |
| | |||||
* | Fix formatting with cargo fmt | Dirkjan Ochtman | 2018-06-21 | 1 | -21/+21 |
| | |||||
* | Add test for unary - operator | Dirkjan Ochtman | 2018-04-27 | 1 | -0/+13 |
| | |||||
* | Add test for ! operator (see #83) | Dirkjan Ochtman | 2018-04-27 | 1 | -0/+13 |
| | |||||
* | Properly handle whitespace around comments (fixes #79) | Dirkjan Ochtman | 2018-04-17 | 1 | -0/+11 |
| | |||||
* | Apply suggestions from rustfmt to improve style | Dirkjan Ochtman | 2017-11-21 | 1 | -7/+8 |
| | |||||
* | Make empty string literals work | Dirkjan Ochtman | 2017-10-22 | 1 | -2/+2 |
| | |||||
* | Add support for array literals (fixes #59) | Dirkjan Ochtman | 2017-10-20 | 1 | -0/+11 |
| | |||||
* | Add test for path expressions (see #56) | Dirkjan Ochtman | 2017-10-04 | 1 | -0/+18 |
| | |||||
* | Add support for tuple indexing in templates | Lars Erik Rosengren | 2017-09-10 | 1 | -0/+12 |
| | |||||
* | Move JSON test into filters test module | Dirkjan Ochtman | 2017-09-07 | 1 | -28/+1 |
| | |||||
* | Move escaping tests into a separate module | Dirkjan Ochtman | 2017-09-07 | 1 | -52/+0 |
| | |||||
* | Add test case for inferred escape mode | Dirkjan Ochtman | 2017-09-07 | 1 | -0/+13 |
| | |||||
* | Make ext attribute mandatory for source-specified templates | Dirkjan Ochtman | 2017-09-07 | 1 | -3/+3 |
| | |||||
* | Add some tests for escaping functionality | Dirkjan Ochtman | 2017-09-05 | 1 | -0/+39 |
| | |||||
* | Adding optional json filter | Anthony Nowell | 2017-08-23 | 1 | -4/+18 |
| | |||||
* | Implement Display for all Templates | Dirkjan Ochtman | 2017-08-10 | 1 | -0/+13 |
| | |||||
* | Propagate format errors and rename `render_to()` to `render_into()` | Dirkjan Ochtman | 2017-08-10 | 1 | -14/+14 |
| | |||||
* | Merge changes | Dirkjan Ochtman | 2017-08-02 | 1 | -0/+19 |
|\ |