htmlcc/examples/helloworld.html
2025-05-15 17:07:19 +10:00

21 lines
442 B
HTML

{! char *page_title = "Hello World!"; !}
{! char *our_names = "Alice & Bob"; !}
{% page main %}{# void main(void) { ... } #}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{{ page_title }}</title>
</head>
<body>
<p>Hello world, we are {{ our_names }}.</p>
<p>Counting to 10:</p>
<p>
{% for int i = 1; i <= 10; i++ %}
{{ i|%d }}{% if i != 10 %},{% endif %}
{% endfor %}
</p>
</body>
</html>
{% endpage %}