Route-local splits
Keep complexity beside the route first
If this page grows, split local markup into _partials/. Only move code to
_site/ once more than one route genuinely needs it.
test7.preview.haume.nz
Demo route
This route shows the default Kawhi pattern: local page.css, local page.js,
route-local _partials/, a small pure logic.php, and an htmx handler in
submit.php.
What to inspect
public/demo/index.phppublic/demo/page.csspublic/demo/page.jspublic/demo/_partials/form.phppublic/demo/submit.phppublic/demo/logic.phpRoute-local splits
If this page grows, split local markup into _partials/. Only move code to
_site/ once more than one route genuinely needs it.
htmx-first
The form below posts to submit.php and swaps a small HTML fragment back into the page.
Interactive example
Page JavaScript loaded and ready.
Awaiting submission
This panel will be replaced by a response from submit.php when the form posts via htmx.