htmx-ext-include-vals

2.0.1 • Public • Published

The include-vals extension allows you to programmatically include values in a request with a include-vals attribute. The value of this attribute is one or more name/value pairs, which will be evaluated as the fields in a javascript object literal.

Install

<script src="https://unpkg.com/htmx-ext-include-vals@2.0.0/include-vals.js"></script>

Usage

<div hx-ext="include-vals">
    <div hx-get="/test" include-vals="included:true, computed: computeValue()">
      Will Include Additional Values
    </div>
</div>

Readme

Keywords

none

Package Sidebar

Install

npm i htmx-ext-include-vals

Weekly Downloads

126

Version

2.0.1

License

none

Unpacked Size

4.76 kB

Total Files

8

Last publish

Collaborators

  • carsongross