mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 22:16:08 +00:00

When `HX-Target` header is present, bypass any configured layout for the request. This allows a full page reload to render with a layout, i.e. render the entire page, while a request from htmx will load just the content directly generated by the view.
13 lines
280 B
Plaintext
13 lines
280 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>
|
|
</head>
|
|
|
|
<body>
|
|
<main>{zmpl.content}</main>
|
|
</body>
|
|
</html>
|