diff options
author | Tuomas Siipola <tuomas@zpl.fi> | 2020-01-12 00:47:52 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-01-12 08:15:04 +0100 |
commit | 80148aa75335563106abae8680197e4adf3eb2eb (patch) | |
tree | d2c593be4240b086caa5557c150d3546f467322b /testing/templates | |
parent | 100679e69d37355f3683df43e58aab21312ea147 (diff) | |
download | askama-80148aa75335563106abae8680197e4adf3eb2eb.tar.gz askama-80148aa75335563106abae8680197e4adf3eb2eb.tar.bz2 askama-80148aa75335563106abae8680197e4adf3eb2eb.zip |
Support escaping in string literals
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.
Diffstat (limited to '')
-rw-r--r-- | testing/templates/literals-escape.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testing/templates/literals-escape.html b/testing/templates/literals-escape.html new file mode 100644 index 0000000..4886cfb --- /dev/null +++ b/testing/templates/literals-escape.html @@ -0,0 +1,2 @@ +{{ '\x41' }}{{ '\n' }}{{ '\r' }}{{ '\t' }}{{ '\\' }}{{ '\0' }}{{ '\u{2665}' }}{{ '\'' }}{{ '\"' }}{{ '"' }} +{{ "\x41\n\r\t\\\0\u{2665}\'\"'" }} |