diff options
author | Kevin Chabowski <kevin@kch42.de> | 2015-04-13 22:35:27 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2015-04-13 22:35:27 +0200 |
commit | f744b3227b116d4f7ccd7c71f8b8498ebf86d85f (patch) | |
tree | 87a2ea0047c7587375986d3b1a2a31c05e8d36ce /tests/test_autoescape/test.tpl | |
parent | 6d1c13b05d16e89268403860e47743455ea0a2ff (diff) | |
download | ste-f744b3227b116d4f7ccd7c71f8b8498ebf86d85f.tar.gz ste-f744b3227b116d4f7ccd7c71f8b8498ebf86d85f.tar.bz2 ste-f744b3227b116d4f7ccd7c71f8b8498ebf86d85f.zip |
Implemented autoescaping
Still needs some cleanup and documentation.
Diffstat (limited to 'tests/test_autoescape/test.tpl')
-rw-r--r-- | tests/test_autoescape/test.tpl | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/test_autoescape/test.tpl b/tests/test_autoescape/test.tpl new file mode 100644 index 0000000..9452972 --- /dev/null +++ b/tests/test_autoescape/test.tpl @@ -0,0 +1,29 @@ +outer 1: $test +escaped outer 1: <ste:escape>$test</ste:escape> +double escaped outer 1: <ste:escape><ste:escape>$test</ste:escape></ste:escape> +raw outer 1: <ste:raw>$test</ste:raw> +arg outer 1: <ste:echoarg echo="$test" /> +<ste:autoescape mode="none"> +nested 1: $test +escaped nested 1: <ste:escape>$test</ste:escape> +double escaped nested 1: <ste:escape><ste:escape>$test</ste:escape></ste:escape> +raw nested 1: <ste:raw>$test</ste:raw> +arg nested 1: <ste:echoarg echo="$test" /> +<ste:autoescape mode="html"> +innermost: $test +escaped innermost: <ste:escape>$test</ste:escape> +double escaped innermost: <ste:escape><ste:escape>$test</ste:escape></ste:escape> +raw innermost: <ste:raw>$test</ste:raw> +arg innermost: <ste:echoarg echo="$test" /> +</ste:autoescape> +nested 2: $test +escaped nested 2: <ste:escape>$test</ste:escape> +double escaped nested 2: <ste:escape><ste:escape>$test</ste:escape></ste:escape> +raw nested 2: <ste:raw>$test</ste:raw> +arg nested 2: <ste:echoarg echo="$test" /> +</ste:autoescape> +outer 2: $test +escaped outer 2: <ste:escape>$test</ste:escape> +double escaped outer 2: <ste:escape><ste:escape>$test</ste:escape></ste:escape> +raw outer 2: <ste:raw>$test</ste:raw> +arg outer 2: <ste:echoarg echo="$test" /> |