Skip to content
EntityQ109462071· pop 5· linked from 183 articles

اچ‌تی‌ام‌اکس

Sign in to save

Also known as HTMX

htmx (also stylized as HTMX) is an open-source front-end JavaScript library that extends HTML with custom attributes that enable the use of AJAX directly in HTML and with a hypermedia-driven approach. These attributes allow for the dynamic definition of a web page directly in HTML and CSS, without the need for writing additional JavaScript. These attributes allows tasks that traditionally required writing JavaScript to be done completely with HTML. The library was created by Carson Gross as a new version of intercooler.js.

Source code

Why should only and be able to make HTTP requests? Why should only click & submit events trigger them? Why should only GET & POST be available? Why should you only be able to replace the entire screen? To develop htmx locally, you will need to install the development dependencies. At this point you can modify /src/htmx.js to add features, and then add tests in the appropriate area under /test . /test/index.html - the root test page from which all other tests are included /test/attributes - attribute specific tests /test/core - core functionality tests /test/core/regressions.js - regression tests /test/ext - extension tests /test/manual - manual tests that cannot be automated htmx uses the mocha testing framework, the chai assertion framework and sinon to mock out AJAX requests. They are all OK.

Excerpt from the source-code README · 3,890 chars · not written by Vinony

Wikidata facts

Instance of
web framework
Official website
htmx.org
Show 10 more facts
source code repository URL
github.com/bigskysoftware/htmx
inception
2020-04-13
programmed in
Q2005
Stack Exchange tag
stackoverflow.com/tags/htmx
software version identifier
2.0.9
operating system
cross-platform
social media followers
9310
publication date
2020-11-24
Commons category
Htmx
Sources (7)

via Wikidata · CC0

Available in 4 languages

via Wikidata sitelinks · CC0