Back to Integrations
HTMX Integration
Since HTMX is used with server-rendered HTML, add the Pulse script to your server's base template.
Add to your base HTML template
HTMX works with any backend — Django, Flask, Laravel, Rails, Express, and more. Add the Pulse script to whichever base template your server renders.
base.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script
defer
data-domain="your-site.com"
src="https://pulse.ciphera.net/script.js"
></script>
<script src="https://unpkg.com/htmx.org"></script>
<title>My HTMX App</title>
</head>
<body>
<!-- Your HTMX-powered content -->
</body>
</html>See the backend-specific guides for template syntax details: Django, Flask, Laravel, Rails, Express.