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 +```