Welcome to mirror list, hosted at ThFree Co, Russian Federation.

bs-table.html « shortcodes « layouts « site - github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9eec109cb8cf4e0f588ac808d031701b1abb586f (plain)
1
2
3
4
5
6
7
8
9
{{- /*
  Usage: `bs-table "class class-foo"`, where class can be any string
*/ -}}

{{- $css_class := .Get 0 | default "table" -}}
{{- $html_table := .Inner | markdownify -}}
{{- $html_table = replace $html_table "<table>" (printf `<div class="table-responsive"><table class="%s">` $css_class) -}}
{{- $html_table = replace $html_table "</table>" "</table></div>" -}}
{{- $html_table | safeHTML -}}