aboutsummaryrefslogblamecommitdiffstats
path: root/vendor/twbs/bootstrap/site/layouts/shortcodes/bs-table.html
blob: 40b9b8ce565bfadda916c420508c00982ec07d18 (plain) (tree)
1
2
3
4
5
6
7
8
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 -}}