0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-02 14:24:19 +01:00
Bootstrap/site/layouts/shortcodes/bs-table.html

12 lines
313 B
HTML

{{- /*
Usage: `table "class"`,
where class can be anything
*/ -}}
{{ $htmlTable := .Inner | markdownify }}
{{ $css_class := .Get 0 | default "table" }}
{{ $old := "<table>" }}
{{ $new := printf "<table class=\"%s\">" $css_class }}
{{ $htmlTable := replace $htmlTable $old $new }}
{{ $htmlTable | safeHTML }}