{#- Two buttons that switch a document between two views, kept in the `view` of the x-data around them. `switch_views` holds (value, label) pairs, the first shown to begin with; `switch_label` names what they switch. Where `switch_json_url` is given, choosing JSON asks the server for it, into `switch_json_target`. -#} {%- for value, label in switch_views %} {%- endfor %}