htmx 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +8 -9
- data/htmx.gemspec +1 -1
- data.tar.gz.sig +0 -0
- metadata +13 -13
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 061d840aba4723239a393b8c8c304f0e4d6dca4b844fc990722e7d2aea9c8faf
|
|
4
|
+
data.tar.gz: acefbda40ffe891e202f8f815f5d1936f295bab933aac5d2ddf32354c5f5e201
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24986b4cb5afa08aa1a0dc5b50ab785a09907253f731b1564a27bf64443843c5c547c1c9936c33e325a2e9fa68e0f4067eee82bcee12c4314336c56297357453
|
|
7
|
+
data.tar.gz: 7bfa9f77727829e8f07b59bb8c916954f6700b3a3d57eb2f6ec2d857925d32959e5fd1242e0811eb8b11422d7ecb61f3502470477f1fa63425459a929d8f1c7f
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/README.adoc
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
:toclevels: 5
|
|
3
3
|
:figure-caption!:
|
|
4
4
|
|
|
5
|
+
:data_link: link:https://alchemists.io/articles/ruby_data[Data]
|
|
6
|
+
:hanami_link: link:https://hanamirb.org[Hanami]
|
|
7
|
+
:hanami_views_link: link:https://alchemists.io/articles/hanami_views[Hanami Views]
|
|
8
|
+
:hanamismith_link: link:https://alchemists.io/projects/hanamismith[Hanamismith]
|
|
5
9
|
:htmx_link: link:https://htmx.org[htmx]
|
|
6
10
|
:hypermedia_systems_link: link:https://hypermedia.systems[Hypermedia Systems]
|
|
7
|
-
:hanami_link: link:https://hanamirb.org[Hanami]
|
|
8
11
|
:roda_link: link:http://roda.jeremyevans.net[Roda]
|
|
9
|
-
:data_link: link:https://alchemists.io/articles/ruby_data[Data]
|
|
10
|
-
:hanamismith_link: link:https://alchemists.io/projects/hanamismith[Hanamismith]
|
|
11
12
|
|
|
12
13
|
= HTMX
|
|
13
14
|
|
|
@@ -28,7 +29,7 @@ ____
|
|
|
28
29
|
|
|
29
30
|
This gem provides native Ruby support for the {htmx_link} JavaScript library so you can build sophisticated web applications using pure Hypermedia REST APIs while avoiding unnecessary bloat and complexity common with the JavaScript ecosystem. By building upon the original foundations of Hypermedia REST APIs, you can build rich web applications with no additional JavaScript!
|
|
30
31
|
|
|
31
|
-
💡 This is used with the {hanamismith_link} gem when building {hanami_link} applications.
|
|
32
|
+
💡 This is used with the {hanamismith_link} gem when building {hanami_link} applications.
|
|
32
33
|
|
|
33
34
|
toc::[]
|
|
34
35
|
|
|
@@ -78,7 +79,7 @@ require "htmx"
|
|
|
78
79
|
|
|
79
80
|
== Usage
|
|
80
81
|
|
|
81
|
-
One of the first tasks
|
|
82
|
+
One of the first tasks to tackle, when working with the {htmx_link} library, is building htmx specific HTML attributes. This can be accomplished by using the `.[]` method. For example, when implementing a {hanami_views_link} part, you could use the following:
|
|
82
83
|
|
|
83
84
|
[source,ruby]
|
|
84
85
|
----
|
|
@@ -117,7 +118,7 @@ tag.button(
|
|
|
117
118
|
)
|
|
118
119
|
----
|
|
119
120
|
|
|
120
|
-
This
|
|
121
|
+
This will produce the following HTML code:
|
|
121
122
|
|
|
122
123
|
[source,html]
|
|
123
124
|
----
|
|
@@ -139,9 +140,7 @@ HTMX::Prefixer.new.call delete: "/tasks/1"
|
|
|
139
140
|
HTMX::Prefixer.new("hx").call delete: "/tasks/1"
|
|
140
141
|
----
|
|
141
142
|
|
|
142
|
-
All three of the above will produce the same output which means you'll most likely want to use the `.[]` method since it has the shortest syntax.
|
|
143
|
-
|
|
144
|
-
If you attempt to use an unsupported prefix, you'll get an error:
|
|
143
|
+
All three of the above will produce the same output which means you'll most likely want to use the `.[]` method since it has the shortest syntax. If you attempt to use an unsupported prefix, you'll get an error:
|
|
145
144
|
|
|
146
145
|
[source,ruby]
|
|
147
146
|
----
|
data/htmx.gemspec
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: htmx
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brooke Kuhlmann
|
|
@@ -9,9 +9,9 @@ bindir: bin
|
|
|
9
9
|
cert_chain:
|
|
10
10
|
- |
|
|
11
11
|
-----BEGIN CERTIFICATE-----
|
|
12
|
-
|
|
12
|
+
MIIENjCCAp6gAwIBAgIBAzANBgkqhkiG9w0BAQsFADBBMQ8wDQYDVQQDDAZicm9v
|
|
13
13
|
a2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQBGRYC
|
|
14
|
-
|
|
14
|
+
aW8wHhcNMjYwMzI1MTI0OTEyWhcNMjcwMzI1MTI0OTEyWjBBMQ8wDQYDVQQDDAZi
|
|
15
15
|
cm9va2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQB
|
|
16
16
|
GRYCaW8wggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCro8tj5/E1Hg88
|
|
17
17
|
f4qfiwPVd2zJQHvdYt4GHVvuHRRgx4HGhJuNp+4BId08RBn7V6V1MW6MY3kezRBs
|
|
@@ -23,15 +23,15 @@ cert_chain:
|
|
|
23
23
|
GUHU9MyIXbFOsnp3K3ADrAVjPWop8EZkmUR3MV/CUm00w2cZHCSGiXl1KMpiVKvk
|
|
24
24
|
Ywr1gd2ZME4QLSo+EXUtLxDUa/W3xnBS8dBOuMMz02FPWYr3PN8CAwEAAaM5MDcw
|
|
25
25
|
CQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFAFgmv0tYMZnItuPycSM
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
F5wykJEVMA0GCSqGSIb3DQEBCwUAA4IBgQAG+ykjp+DIXSybGEtX+/ve974mYfN6
|
|
27
|
+
8U7qcVfRM+qDSOZ+97iu30qUTbVAKIHlHCDKRn3SgOffDUB5VU2MsJBh/3TPKWBZ
|
|
28
|
+
anB/uzMcwOfru+qyA3b7ZFqZzRLWmR5FtPObFxc0gYMT3YvLNHk2Nb9Vjq/PoiGG
|
|
29
|
+
e75PXweDOokwDA5m1gMOz1rdp/dlGMXkSFQg94PPVyUKXgO4VzWTgePSDxOIL+v6
|
|
30
|
+
+OWV6AaEH9BaqxnmdA5ubi0L7bhl0gbN92FxpNO3kpTjww8kme856a+wCK3qyM5w
|
|
31
|
+
7ZLbUexynDN0Au8eSpT2Bf6ztGmB1S9ffzDJsGX1/lkpMIB51e48Xe2+gzzOgemk
|
|
32
|
+
CdZaGupj6WkarnT8kh/cPtyA5ax4rGX6GOS8meGxzkv8Uy0JSEOYAp6wLfIisYZp
|
|
33
|
+
IJBIXIOkwKKJ0eB5YHrUSJxzpP4LlcIg/eTftaXmJdYjy+2VRrCZYDjfguyLmMjR
|
|
34
|
+
KR9w4/Fjvqy87kCHmxMWa6IL2Vzt1Clm2cA=
|
|
35
35
|
-----END CERTIFICATE-----
|
|
36
36
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
37
37
|
dependencies:
|
|
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
104
104
|
- !ruby/object:Gem::Version
|
|
105
105
|
version: '0'
|
|
106
106
|
requirements: []
|
|
107
|
-
rubygems_version: 4.0.
|
|
107
|
+
rubygems_version: 4.0.10
|
|
108
108
|
specification_version: 4
|
|
109
109
|
summary: An augmenter and companion to the HTMX JavaScript library.
|
|
110
110
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|