aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/simple.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-01-10Revert "Add automatic borrowing to let statement"Libravatar Guillaume Gomez1-14/+0
This reverts commit 3d52283b74573af509deb3c47cbabf7b7b58b1dd.
2023-12-13Add automatic borrowing to let statementLibravatar max1-0/+14
Signed-off-by: max <gmx.sht@gmail.com>
2023-11-22Add better support for rust-like number literals (#908)Libravatar PizzasBear1-0/+23
Signed-off-by: max <gmx.sht@gmail.com>
2023-01-30Apply clippy suggestions for 1.67 (#769)Libravatar Dirkjan Ochtman1-3/+3
2022-11-07chore: remove allow(clippy::disallowed_names)Libravatar Dirkjan Ochtman1-1/+1
2022-11-07chore: apply clippy suggestions for 1.65Libravatar Dirkjan Ochtman1-1/+1
2021-12-15Use a separate trait for object safety (#579)Libravatar Dirkjan Ochtman1-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...
2021-11-29Allow whitespace trimming in {{raw}} blocksLibravatar René Kijewski1-0/+10
2021-05-17Remove forward-slash escape (#486)Libravatar Alex Wennerberg1-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
2021-02-22Added option testLibravatar vallentin1-0/+16
2021-01-13Added constants testLibravatar vallentin1-0/+30
2021-01-05Removed implicit borrowing of literals, calls, and more (fixes #404)Libravatar vallentin1-4/+4
2020-12-02Allow paths to start with `::` (#393)Libravatar Christian Vallentin1-0/+9
2020-04-23Fix taking references of function arguments (fixes #311)Libravatar Dirkjan Ochtman1-0/+10
2020-03-18Fixed clippy warningsLibravatar Nathan Lapel1-0/+2
2020-03-18Use _visit_args in var/path callsLibravatar Nathan Lapel1-3/+3
2020-03-18Support function callsLibravatar Nathan Lapel1-0/+37
2020-01-29Add support for warpLibravatar Bjørn Madsen1-1/+2
2020-01-12Support escaping in string literalsLibravatar Tuomas Siipola1-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.
2020-01-03Support char literalsLibravatar Tuomas Siipola1-1/+1
2020-01-02Clean up clippy warningsLibravatar Dirkjan Ochtman1-0/+2
2019-11-04Fix formatting with cargo fmtLibravatar Dirkjan Ochtman1-1/+4
2019-10-28Moved no-receiver size_hint method to a separate trait (#270)Libravatar jbg1-2/+2
2019-10-08Add support for boolean literalsLibravatar Dave Poulter1-1/+1
2019-04-18WIP: Add raw blockLibravatar Pavel Fokin1-0/+23
2018-12-08Use 2018 edition idiomsLibravatar Dirkjan Ochtman1-2/+0
2018-12-08Remove unused macro_use attributesLibravatar Dirkjan Ochtman1-1/+0
2018-12-07Fix cargo fmtLibravatar Juan Aguilar Santillana1-4/+1
2018-11-11Add e2e test for escapeLibravatar bott1-0/+16
2018-11-04use UFCS in derived codeLibravatar Yusuke Sasaki1-0/+12
2018-10-20Add test for unescaped variable expressions (see #132)Libravatar Qian Linfeng1-0/+24
2018-10-12make `Template::extension()` staticLibravatar Yusuke Sasaki1-1/+1
It is useful for calculating the media type without instantiating the context value.
2018-09-14Update formatting for rust 1.29.0 rustfmtLibravatar Dirkjan Ochtman1-2/+8
2018-07-22Add Template method to return template extensionLibravatar Dirkjan Ochtman1-0/+1
Thanks to Ryan McGrath for the suggestion and initial implementation.
2018-07-04Add test for unit structs (see #101)Libravatar Dirkjan Ochtman1-0/+9
2018-06-23Remove accidental debugging cruftLibravatar Dirkjan Ochtman1-1/+1
2018-06-23Add test for Index operationLibravatar Dirkjan Ochtman1-0/+16
2018-06-21Fix formatting with cargo fmtLibravatar Dirkjan Ochtman1-21/+21
2018-04-27Add test for unary - operatorLibravatar Dirkjan Ochtman1-0/+13
2018-04-27Add test for ! operator (see #83)Libravatar Dirkjan Ochtman1-0/+13
2018-04-17Properly handle whitespace around comments (fixes #79)Libravatar Dirkjan Ochtman1-0/+11
2017-11-21Apply suggestions from rustfmt to improve styleLibravatar Dirkjan Ochtman1-7/+8
2017-10-22Make empty string literals workLibravatar Dirkjan Ochtman1-2/+2
2017-10-20Add support for array literals (fixes #59)Libravatar Dirkjan Ochtman1-0/+11
2017-10-04Add test for path expressions (see #56)Libravatar Dirkjan Ochtman1-0/+18
2017-09-10Add support for tuple indexing in templatesLibravatar Lars Erik Rosengren1-0/+12
2017-09-07Move JSON test into filters test moduleLibravatar Dirkjan Ochtman1-28/+1
2017-09-07Move escaping tests into a separate moduleLibravatar Dirkjan Ochtman1-52/+0
2017-09-07Add test case for inferred escape modeLibravatar Dirkjan Ochtman1-0/+13
2017-09-07Make ext attribute mandatory for source-specified templatesLibravatar Dirkjan Ochtman1-3/+3