Add script functions
Also bump version to match htmx
This commit is contained in:
parent
9fcba06e75
commit
9a9f159cab
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<VersionPrefix>0.9.3</VersionPrefix>
|
<VersionPrefix>1.6.1</VersionPrefix>
|
||||||
<PackageReleaseNotes>Add support for HX-Retarget header (added in htmx 1.6.1)</PackageReleaseNotes>
|
<PackageReleaseNotes>Add support for HX-Retarget header (added in htmx 1.6.1)</PackageReleaseNotes>
|
||||||
<Authors>danieljsummers</Authors>
|
<Authors>danieljsummers</Authors>
|
||||||
<Company>Bit Badger Solutions</Company>
|
<Company>Bit Badger Solutions</Company>
|
||||||
|
|
|
@ -212,3 +212,23 @@ module HtmxAttrs =
|
||||||
let _hxVals = attr "hx-vals"
|
let _hxVals = attr "hx-vals"
|
||||||
/// Establishes a WebSocket or sends information to one
|
/// Establishes a WebSocket or sends information to one
|
||||||
let _hxWs = attr "hx-ws"
|
let _hxWs = attr "hx-ws"
|
||||||
|
|
||||||
|
|
||||||
|
/// Script tags to pull htmx into an web page
|
||||||
|
module Script =
|
||||||
|
|
||||||
|
/// Script tag to load the minified version from unpkg.com
|
||||||
|
let minified =
|
||||||
|
script [
|
||||||
|
_src "https://unpkg.com/htmx.org@1.6.1"
|
||||||
|
_integrity "sha384-tvG/2mnCFmGQzYC1Oh3qxQ7CkQ9kMzYjWZSNtrRZygHPDDqottzEJsqS4oUVodhW"
|
||||||
|
_crossorigin "anonymous"
|
||||||
|
] []
|
||||||
|
|
||||||
|
/// Script tag to load the unminified version from unpkg.com
|
||||||
|
let unminified =
|
||||||
|
script [
|
||||||
|
_src "https://unpkg.com/htmx.org@1.6.1/dist/htmx.js"
|
||||||
|
_integrity "sha384-7G9OE6gS4pBnBGH74HojjPQ8xOEGrdBeQc7JJOc58k6LG/YVfKXARd91w9715AYG"
|
||||||
|
_crossorigin "anonymous"
|
||||||
|
] []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user