From 9111bbad618ce479654c51fd7617436f35e0fd9d Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Thu, 15 May 2025 17:07:19 +1000 Subject: [PATCH] Add simple example --- examples/helloworld.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 examples/helloworld.html diff --git a/examples/helloworld.html b/examples/helloworld.html new file mode 100644 index 0000000..898ea56 --- /dev/null +++ b/examples/helloworld.html @@ -0,0 +1,20 @@ +{! char *page_title = "Hello World!"; !} +{! char *our_names = "Alice & Bob"; !} +{% page main %}{# void main(void) { ... } #} + + + + + {{ page_title }} + + +

Hello world, we are {{ our_names }}.

+

Counting to 10:

+

+ {% for int i = 1; i <= 10; i++ %} + {{ i|%d }}{% if i != 10 %},{% endif %} + {% endfor %} +

+ + +{% endpage %}