From c59669a1bd7763157fffdb331f2134014b72a8f3 Mon Sep 17 00:00:00 2001 From: andrewgryan Date: Sat, 11 May 2024 10:03:10 +0100 Subject: [PATCH] better HTMX docs --- docs/content/articles/htmx.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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. +