htmx/www/extensions/json-enc.md
Denis Palashevskii a708395d46 Docs: Move extension script URL to the start of the page (#1232)
* Move extension script URL to the start of the page

* Improve visibility of installation instructions on /extensions page
2023-02-02 16:59:03 -07:00

340 B

layout title
layout.njk </> htmx - high power tools for html

The json-enc Extension

This extension encodes parameters in JSON format instead of url format.

Install

<script src="https://unpkg.com/htmx.org/dist/ext/json-enc.js">

Usage

<div hx-post='/test' hx-ext='json-enc'>click me</div>