jetzig/demo/src/app/views/init/index.zmpl
Bob Farrell 6e09c67c66 Fix jetzig init
Create a new `main.zig` for use by `jetzig init` - using the demo app's
`main.zig` is no longer workable due to it depending on auth
middleware, which we do not want to enable by default in new projects.
2025-05-31 16:23:26 +01:00

23 lines
764 B
Plaintext

<html>
<head>
<script src="https://unpkg.com/htmx.org@1.9.10"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="/styles.css" />
</head>
<body>
<div class="text-center pt-10 m-auto">
<!-- If present, renders the `message_param` response data value, add `?message=hello` to the
URL to see the output: -->
<h2 class="param text-3xl text-[#f7931e]">{{$.message_param}}</h2>
<!-- Renders `src/app/views/init/_content.zmpl`, passing in the `welcome_message` field from template data. -->
<div>
@partial init/content(message: $.welcome_message)
</div>
</div>
</body>
</html>