diff options
Diffstat (limited to 'vendor/twbs/bootstrap/site/layouts/shortcodes/bs-table.html')
-rw-r--r-- | vendor/twbs/bootstrap/site/layouts/shortcodes/bs-table.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/twbs/bootstrap/site/layouts/shortcodes/bs-table.html b/vendor/twbs/bootstrap/site/layouts/shortcodes/bs-table.html new file mode 100644 index 000000000..40b9b8ce5 --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/shortcodes/bs-table.html @@ -0,0 +1,9 @@ +{{- /* + Usage: `bs-table "class class-foo"`, + where class can be anything +*/ -}} + +{{- $css_class := .Get 0 | default "table" -}} +{{- $html_table := .Inner | markdownify -}} +{{- $html_table = replace $html_table "<table>" (printf `<table class="%s">` $css_class) -}} +{{- $html_table | safeHTML -}} |