aboutsummaryrefslogtreecommitdiff
path: root/t/test2.chn
diff options
context:
space:
mode:
authorThomas Albers Raviola <thomas@thomaslabs.org>2024-05-13 21:29:31 +0200
committerThomas Albers Raviola <thomas@thomaslabs.org>2025-01-05 17:11:17 +0100
commitb8d1c62d87e418fb6a7b0ca6c5891b9b7c1ecf0c (patch)
tree161ec305fb4bef388dee6f50ed1c3ed842d55a2b /t/test2.chn
Initial commit
Diffstat (limited to 't/test2.chn')
-rw-r--r--t/test2.chn19
1 files changed, 19 insertions, 0 deletions
diff --git a/t/test2.chn b/t/test2.chn
new file mode 100644
index 0000000..a637b61
--- /dev/null
+++ b/t/test2.chn
@@ -0,0 +1,19 @@
+{@define}{@html-element}{{@lambda}{@name}{{@lambda}{@attr @content}{<@name @attr>
+@content
+</@name>}}}%
+%
+%
+{@define}{@html-html}{{@html-element}{html}}%
+{@define}{@html-head}{{@html-element}{head}}%
+{@define}{@html-body}{{@html-element}{body}}%
+{@define}{@html-title}{{@html-element}{title}}%
+{@define}{@html-h1}{{@html-element}{h1}}%
+{@define}{@html-p}{{@html-element}{p}}%
+%
+%
+{@html-html}{}{%
+{@html-head}{}{{@html-title}{}{Website}}%
+
+{@html-body}{}{
+{@html-h1}{}{Chains test}
+{@html-p}{}{Hello World!}}}