diff --git a/docs/content/articles/htmx.md b/docs/content/articles/htmx.md index e28dcf7..c30cb24 100644 --- a/docs/content/articles/htmx.md +++ b/docs/content/articles/htmx.md @@ -24,12 +24,14 @@ The principles that govern HTMX development also hold for Leaflet-HTML. A button that requests HTML to replace part of the document should update the map. ```html + + @@ -39,6 +41,14 @@ A button that requests HTML to replace part of the document should update the ma + + + + ``` @@ -56,6 +66,12 @@ A button that requests HTML to replace part of the document should update the ma + + The above approach works by triggering the change handlers in the `` custom element. The additional HTML tags generated by Leaflet are also inside the `` tag. @@ -65,3 +81,4 @@ All Leaflet-HTML tags, e.g. ``, ``, etc. can be swapped howeve It is just the contents of `` that needs careful consideration. A more elegant mechanism in the future will make it clear which part of the document is controlled by Leaflet. +