From bc69faaa5bbd8a2d8afb9ab81882b1ba21c4bb8e Mon Sep 17 00:00:00 2001 From: Thomas Albers Raviola Date: Sat, 4 Jan 2025 23:28:34 +0100 Subject: Reorganize and add documentation --- tests/test2.chn | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/test2.chn (limited to 'tests/test2.chn') 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 +}}}% +% +% +{@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!}}} -- cgit v1.2.3