From 1a2fefe4e583aa03daacf732b9d9619901b4420a Mon Sep 17 00:00:00 2001 From: puetzp <46483361+puetzp@users.noreply.github.com> Date: Sun, 16 Jun 2024 13:15:27 +0200 Subject: [PATCH] Update documentation regarding toggles (#389) (#410) --- docs/content/splices-toggles.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/content/splices-toggles.md b/docs/content/splices-toggles.md index 4f97598..84f8bf3 100644 --- a/docs/content/splices-toggles.md +++ b/docs/content/splices-toggles.md @@ -115,9 +115,9 @@ html! { ## Toggles: `[foo]` -Use `[foo]` syntax to show or hide something based on a boolean expression `foo`. +Use `[foo]` syntax to show or hide classes and [boolean attributes](https://developer.mozilla.org/en-US/docs/Glossary/Boolean/HTML) on a HTML element based on a boolean expression `foo`. -This works on empty attributes: +Toggle boolean attributes: ```rust let allow_editing = true; @@ -160,4 +160,4 @@ html! { p title=[title] { "Battery staple" } } # ; -``` \ No newline at end of file +```