mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-12 00:08:59 +01:00
12 lines
313 B
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 }}
|