htmx/www/extensions/json-enc.md
Denis Palashevskii f44b04f1a1
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 10:34:17 -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>