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) { ... } #} + + +
+ +Hello world, we are {{ our_names }}.
+Counting to 10:
++ {% for int i = 1; i <= 10; i++ %} + {{ i|%d }}{% if i != 10 %},{% endif %} + {% endfor %} +
+ + +{% endpage %}