Data Structure
Flicking the toggle to the right sets to the value to true
, left to false
.
do_the_thing: true
Templating
Toggles are usually used to control logic, so you can combine them with {{ if }}
statements in your templates to handle all manner of show/hide wizardry.
{{ if do_the_thing }} It does it {{ /if }}