diff options
author | Thomas Albers Raviola <thomas@thomaslabs.org> | 2025-01-04 23:28:34 +0100 |
---|---|---|
committer | Thomas Albers Raviola <thomas@thomaslabs.org> | 2025-01-05 17:11:20 +0100 |
commit | bc69faaa5bbd8a2d8afb9ab81882b1ba21c4bb8e (patch) | |
tree | 6ad76e58bb58f1ac00dcf4ec2dff8d4239f3592e /tests/test2.chn | |
parent | 9412242d0aa9550860db364ddf715fd5c5855740 (diff) |
Reorganize and add documentation
Diffstat (limited to 'tests/test2.chn')
-rw-r--r-- | tests/test2.chn | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/test2.chn b/tests/test2.chn new file mode 100644 index 0000000..a637b61 --- /dev/null +++ b/tests/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!}}} |