Skip to content

Conversation

FumingPower3925
Copy link
Contributor

Description

This pull request adds the dynamic-url extension to the Community Extensions list in the documentation (htmx/www/content/extensions/_index.md).

The dynamic-url extension allows users to define dynamic URL paths in hx- attributes using {variable} placeholders. These placeholders are resolved just before the request using either a custom, user-configured resolver function (to integrate with state management like Nano Stores, Zustand, etc.) or optionally via fallback to the window object. This provides a way to make requests to paths dependent on application state without relying solely on hx-vals for parameter passing.

Link to extension repository: dynamic-url

Corresponding issue: N/A

Testing

This change only modifies the markdown file listing community extensions (htmx/www/content/extensions/_index.md). No htmx source code is affected. Therefore, running the htmx test suite (npm run test) was not required for this documentation update.

The extension itself has its own test suite in its repository, which passes for v1 (1.9.12) and v2 (2.0.4).

Checklist

  • I have read the contribution guidelines
  • I have targeted this PR against the correct branch (master for website changes)
  • This is either a bugfix, a documentation update, or a new feature that has been explicitly approved via an issue (This is a documentation update following the contribution guidelines for adding a community extension. However, it has not been explicitly approved via an issue)
  • I ran the test suite locally (npm run test) and verified that it succeeded (N/A - documentation change only)

@Telroshan Telroshan added documentation Improvements or additions to documentation extension Consideration for an extension labels Apr 3, 2025
@Telroshan Telroshan merged commit 0578564 into bigskysoftware:master Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation extension Consideration for an extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants