aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/simple.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add better support for rust-like number literals (#908)Libravatar PizzasBear2023-11-221-0/+23
| | | Signed-off-by: max <gmx.sht@gmail.com>
* Apply clippy suggestions for 1.67 (#769)Libravatar Dirkjan Ochtman2023-01-301-3/+3
|
* chore: remove allow(clippy::disallowed_names)Libravatar Dirkjan Ochtman2022-11-071-1/+1
|
* chore: apply clippy suggestions for 1.65Libravatar Dirkjan Ochtman2022-11-071-1/+1
|
* Use a separate trait for object safety (#579)Libravatar Dirkjan Ochtman2021-12-151-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}} blocksLibravatar René Kijewski2021-11-291-0/+10
|
* Remove forward-slash escape (#486)Libravatar Alex Wennerberg2021-05-171-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 testLibravatar vallentin2021-02-221-0/+16
|
* Added constants testLibravatar vallentin2021-01-131-0/+30
|
* Removed implicit borrowing of literals, calls, and more (fixes #404)Libravatar vallentin2021-01-051-4/+4
|
* Allow paths to start with `::` (#393)Libravatar Christian Vallentin2020-12-021-0/+9
|
* Fix taking references of function arguments (fixes #311)Libravatar Dirkjan Ochtman2020-04-231-0/+10
|
* Fixed clippy warningsLibravatar Nathan Lapel2020-03-181-0/+2
|
* Use _visit_args in var/path callsLibravatar Nathan Lapel2020-03-181-3/+3
|
* Support function callsLibravatar Nathan Lapel2020-03-181-0/+37
|
* Add support for warpLibravatar Bjørn Madsen2020-01-291-1/+2
|
* Support escaping in string literalsLibravatar Tuomas Siipola2020-01-121-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 literalsLibravatar Tuomas Siipola2020-01-031-1/+1
|
* Clean up clippy warningsLibravatar Dirkjan Ochtman2020-01-021-0/+2
|
* Fix formatting with cargo fmtLibravatar Dirkjan Ochtman2019-11-041-1/+4
|
* Moved no-receiver size_hint method to a separate trait (#270)Libravatar jbg2019-10-281-2/+2
|
* Add support for boolean literalsLibravatar Dave Poulter2019-10-081-1/+1
|
* WIP: Add raw blockLibravatar Pavel Fokin2019-04-181-0/+23
|
* Use 2018 edition idiomsLibravatar Dirkjan Ochtman2018-12-081-2/+0
|
* Remove unused macro_use attributesLibravatar Dirkjan Ochtman2018-12-081-1/+0
|
* Fix cargo fmtLibravatar Juan Aguilar Santillana2018-12-071-4/+1
|
* Add e2e test for escapeLibravatar bott2018-11-111-0/+16
|
* use UFCS in derived codeLibravatar Yusuke Sasaki2018-11-041-0/+12
|
* Add test for unescaped variable expressions (see #132)Libravatar Qian Linfeng2018-10-201-0/+24
|
* make `Template::extension()` staticLibravatar Yusuke Sasaki2018-10-121-1/+1
| | | | | It is useful for calculating the media type without instantiating the context value.
* Update formatting for rust 1.29.0 rustfmtLibravatar Dirkjan Ochtman2018-09-141-2/+8
|
* Add Template method to return template extensionLibravatar Dirkjan Ochtman2018-07-221-0/+1
| | | | Thanks to Ryan McGrath for the suggestion and initial implementation.
* Add test for unit structs (see #101)Libravatar Dirkjan Ochtman2018-07-041-0/+9
|
* Remove accidental debugging cruftLibravatar Dirkjan Ochtman2018-06-231-1/+1
|
* Add test for Index operationLibravatar Dirkjan Ochtman2018-06-231-0/+16
|
* Fix formatting with cargo fmtLibravatar Dirkjan Ochtman2018-06-211-21/+21
|
* Add test for unary - operatorLibravatar Dirkjan Ochtman2018-04-271-0/+13
|
* Add test for ! operator (see #83)Libravatar Dirkjan Ochtman2018-04-271-0/+13
|
* Properly handle whitespace around comments (fixes #79)Libravatar Dirkjan Ochtman2018-04-171-0/+11
|
* Apply suggestions from rustfmt to improve styleLibravatar Dirkjan Ochtman2017-11-211-7/+8
|
* Make empty string literals workLibravatar Dirkjan Ochtman2017-10-221-2/+2
|
* Add support for array literals (fixes #59)Libravatar Dirkjan Ochtman2017-10-201-0/+11
|
* Add test for path expressions (see #56)Libravatar Dirkjan Ochtman2017-10-041-0/+18
|
* Add support for tuple indexing in templatesLibravatar Lars Erik Rosengren2017-09-101-0/+12
|
* Move JSON test into filters test moduleLibravatar Dirkjan Ochtman2017-09-071-28/+1
|
* Move escaping tests into a separate moduleLibravatar Dirkjan Ochtman2017-09-071-52/+0
|
* Add test case for inferred escape modeLibravatar Dirkjan Ochtman2017-09-071-0/+13
|
* Make ext attribute mandatory for source-specified templatesLibravatar Dirkjan Ochtman2017-09-071-3/+3
|
* Add some tests for escaping functionalityLibravatar Dirkjan Ochtman2017-09-051-0/+39
|
* Adding optional json filterLibravatar Anthony Nowell2017-08-231-4/+18
|