mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-03 15:24:19 +01:00
9 lines
299 B
HTML
9 lines
299 B
HTML
{{- /*
|
|
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 `<table class="%s">` $css_class) -}}
|
|
{{- $html_table | safeHTML -}}
|