aboutsummaryrefslogtreecommitdiff
path: root/site/_includes/example.html
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2018-11-16 17:52:02 +0200
committerXhmikosR <[email protected]>2018-11-20 21:31:28 +0200
commitd9717d19450df23aa72a27da88073003b0d412dc (patch)
tree12ddb8057a21f93575961cf3c853da7e43fc639b /site/_includes/example.html
parent2b9af5e38ce4fdbe8b5debff54ae5049fde5ed55 (diff)
downloadbootstrap-d9717d19450df23aa72a27da88073003b0d412dc.tar.xz
bootstrap-d9717d19450df23aa72a27da88073003b0d412dc.zip
Reindent.
Diffstat (limited to 'site/_includes/example.html')
-rw-r--r--site/_includes/example.html20
1 files changed, 11 insertions, 9 deletions
diff --git a/site/_includes/example.html b/site/_includes/example.html
index 308d2850b..dd1cc6382 100644
--- a/site/_includes/example.html
+++ b/site/_includes/example.html
@@ -1,17 +1,19 @@
{%- comment -%}
-Usage: {% include example.html content=markup %},
-where content is a capture with the HTML content
-id - null (default)
-class - "bd-example" (default)
-optional: hide_preview - disabled (default)
-optional: hide_markup - disabled (default)
+ Usage: include example.html content=markup [args],
+ where content is a capture with the HTML content
+
+ args can be one of the following:
+ id - null (default)
+ class - "bd-example" (default)
+ optional: hide_preview - disabled (default)
+ optional: hide_markup - disabled (default)
{%- endcomment -%}
-{%- assign preview_id = include.id -%}
-{%- assign preview_class = include.class -%}
+{%- assign id = include.id -%}
+{%- assign class = include.class -%}
{%- if include.hide_preview == null -%}
-<div{% if preview_id %} id="{{ preview_id }}"{% endif %} class="bd-example{% if preview_class %} {{ preview_class }}{% endif %}">
+<div{% if id %} id="{{ id }}"{% endif %} class="bd-example{% if class %} {{ class }}{% endif %}">
{{- include.content -}}
</div>
{%- endif -%}