mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-07-01 21:46:09 +00:00

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.
23 lines
764 B
Plaintext
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>
|