| 1 |
<!DOCTYPE html> |
| 2 |
<html lang="en"> |
| 3 |
<head> |
| 4 |
<meta charset="utf-8"> |
| 5 |
<meta name="htmx-config" content='{"selfRequestsOnly": true, "includeIndicatorStyles": true, "timeout": 30000}'> |
| 6 |
<title>My App</title> |
| 7 |
</head> |
| 8 |
<body hx-boost="true" hx-headers='{"X-CSRFToken": "abc123"}'> |
| 9 |
|
| 10 |
<header hx-target="#content" hx-swap="innerHTML show:.content-top:top" hx-push-url="true"> |
| 11 |
<nav> |
| 12 |
<a href="/">Home</a> |
| 13 |
<a href="/dashboard">Dashboard</a> |
| 14 |
<a href="/settings">Settings</a> |
| 15 |
</nav> |
| 16 |
</header> |
| 17 |
|
| 18 |
<div id="content" hx-history-elt> |
| 19 |
|
| 20 |
</div> |
| 21 |
|
| 22 |
<footer> |
| 23 |
<p hx-disinherit="*"> |
| 24 |
<a href="/terms">Terms</a> |
| 25 |
<a href="/privacy">Privacy</a> |
| 26 |
</p> |
| 27 |
</footer> |
| 28 |
|
| 29 |
<script> |
| 30 |
htmx.logAll(); |
| 31 |
htmx.config.defaultSwapStyle = "innerHTML"; |
| 32 |
htmx.config.historyCacheSize = 50; |
| 33 |
</script> |
| 34 |
</body> |
| 35 |
</html> |