Section

Component Documentation

matestack core component: Section

Show specs

The HTML section tag implemented in ruby.

Parameters

This component can take 2 optional configuration params and optional content.

# id (optional)

Expects a string with all ids the section should have.

# class (optional)

Expects a string with all classes the section should have.

Example

section id: "foo", class: "bar" do
  plain 'Hello World' # optional content
end

returns

<section id="foo" class="bar">
  Hello World
</section>