htmx-ext

0.1.5 • Public • Published

htmx-ext

Collection of useful htmx extensions

Getting Started

Installation

Via CDN (e.g. unpkg.com)

The fastest way to get going is by loading each extension you want to use into your head tag like so:

<script src="https://unpkg.com/htmx-ext/dist/body-support.js"></script>

Via npm

For npm-style build systems, you can install htmx-ext via npm:

npm install -D htmx-ext

Included Extensions

Extension Description
body-support When using hx-boost on the <body> tag it doesn't update the body attributes. body-support does.
csrf-token This configures the x-csrf-token header in requests based on the <meta name="csrf-token" /> contents
boost-errors This allows boosted pages to return 500, 400, 401, 403 and 404 errors instead of just console logging your error and stopping from there.

Readme

Keywords

none

Package Sidebar

Install

npm i htmx-ext

Weekly Downloads

3

Version

0.1.5

License

none

Unpacked Size

9.41 kB

Total Files

12

Last publish

Collaborators

  • joshmanders