Additional tests to account for the Twig HTML extension.

This commit is contained in:
flash 2023-08-24 22:44:34 +00:00
parent 5e2c842434
commit 2d53e14ba4
4 changed files with 23 additions and 0 deletions

View file

@ -11,3 +11,11 @@ global_var = {{ global_var }}
{{ 'meow'|test_filter }}
{{ test_function('the') }}
{{ 'test' is test_test ? 'test works' : 'test does not work' }}
{{ 'Mewow'|data_uri(mime="text/plain") }}
{{ 'Mewow'|data_uri(mime="application/octet-stream") }}
<div class="{{ html_classes('always', {
'shows-up': true,
'doesnt': false,
}) }}">yay</div>

View file

@ -11,6 +11,11 @@ filter:meow
func:the
test works
data:text/plain,Mewow
data:application/octet-stream;base64,TWV3b3c=
<div class="always shows-up">yay</div>
this var is context
simple set call
applied with fuckery

View file

@ -11,6 +11,11 @@ filter:meow
func:the
test works
data:text/plain,Mewow
data:application/octet-stream;base64,TWV3b3c=
<div class="always shows-up">yay</div>
this var is context
simple set call
applied with fuckery

View file

@ -11,4 +11,9 @@ filter:meow
func:the
test works
data:text/plain,Mewow
data:application/octet-stream;base64,TWV3b3c=
<div class="always shows-up">yay</div>
this var is local