Sha256: 5a07482e269e00e93b63d93527376da7d504b7fa7d5a41665b3acdb867d40d51

Contents?: true

Size: 844 Bytes

Versions: 13

Compression:

Stored size: 844 Bytes

Contents

{{- /*
  Usage: `table [args]`

  `args` are optional and can be one of the following:
    * class: any class(es) to be added to the `table` - default ""
    * simplified: show a simplified version in the examples - default `true`
*/ -}}

{{- $class := .Get "class" -}}
{{- $simplified := .Get "simplified" | default true -}}

{{- $table_attributes := "" -}}
{{- $table_content := "  ...\n" -}}

{{- with $class -}}
  {{- $table_attributes = printf ` class="%s"` . -}}
{{- end -}}

{{- if eq $simplified "false" -}}
  {{- $table_content = partialCached "table-content" . -}}
{{- end -}}

{{- $table := printf "<table%s>\n%s</table>" $table_attributes $table_content -}}

<div class="bd-example">
  <table{{ with $class }} class="{{ . }}"{{ end }}>
    {{ partialCached "table-content" . }}
  </table>
</div>

{{- highlight $table "html" "" -}}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
card-mod-bootstrap-0.18.1 vendor/bootstrap/site/layouts/shortcodes/table.html
card-mod-bootstrap-0.18.0 vendor/bootstrap/site/layouts/shortcodes/table.html
card-mod-bootstrap-0.17.0 vendor/bootstrap/site/layouts/shortcodes/table.html
card-mod-bootstrap-0.16.0 vendor/bootstrap/site/layouts/shortcodes/table.html
card-mod-bootstrap-0.15.6 vendor/bootstrap/site/layouts/shortcodes/table.html
card-mod-bootstrap-0.15.5 vendor/bootstrap/site/layouts/shortcodes/table.html
card-mod-bootstrap-0.15.4 vendor/bootstrap/site/layouts/shortcodes/table.html
card-mod-bootstrap-0.15.3 vendor/bootstrap/site/layouts/shortcodes/table.html
card-mod-bootstrap-0.15.1.2 vendor/bootstrap/site/layouts/shortcodes/table.html
card-mod-bootstrap-0.15.2.pre1 vendor/bootstrap/site/layouts/shortcodes/table.html
card-mod-bootstrap-0.15.1.1 vendor/bootstrap/site/layouts/shortcodes/table.html
card-mod-bootstrap-0.15.1 vendor/bootstrap/site/layouts/shortcodes/table.html
card-mod-bootstrap-0.15.0 vendor/bootstrap/site/layouts/shortcodes/table.html