aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates
diff options
context:
space:
mode:
authorLibravatar max <gmx.sht@gmail.com>2023-10-12 14:47:49 +0300
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2023-10-12 13:57:48 +0200
commit5ee2dfbe6bf901c7c731e9b94ba92b82f09e9101 (patch)
tree3d2d94fb7b14f06c67f2dcb786c0d74e6846cc66 /testing/templates
parentac73f1d535eb3c1fa5dcfbdbd4f8f10ca6ca0139 (diff)
downloadaskama-5ee2dfbe6bf901c7c731e9b94ba92b82f09e9101.tar.gz
askama-5ee2dfbe6bf901c7c731e9b94ba92b82f09e9101.tar.bz2
askama-5ee2dfbe6bf901c7c731e9b94ba92b82f09e9101.zip
Add test for macro self argument
Signed-off-by: max <gmx.sht@gmail.com>
Diffstat (limited to 'testing/templates')
-rw-r--r--testing/templates/macro-self-arg.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/templates/macro-self-arg.html b/testing/templates/macro-self-arg.html
new file mode 100644
index 0000000..c7c6d5b
--- /dev/null
+++ b/testing/templates/macro-self-arg.html
@@ -0,0 +1,5 @@
+{%- macro my_s(slf) -%}
+ {{ slf.s }}
+{%- endmacro -%}
+
+{%- call my_s(self) -%}