--- layout: layout.njk title: htmx - high power tools for html --- ## The `path-deps` Extension This extension supports expressing inter-element dependencies based on paths, inspired by the [intercooler.js dependencies mechanism.](http://intercoolerjs.org/docs.html#dependencies). When this extension is installed an element can express a dependency on another path by using the `path-deps` property and then setting `hx-trigger` to `path-deps`: ```html
...
``` This div will fire a `GET` request to `/example` when any other element issues a mutating request (that is, a non-`GET` request like a `POST`) to `/foo/bar` or any sub-paths of that path. You can use a `*` to match any path component: ```html
...
``` #### Usage ```html
``` #### Source