Sha256: 341c8697331d2ffefb1ff8ef766927b92dbec33c177b91e1884ee2e3873b01c0

Contents?: true

Size: 543 Bytes

Versions: 6

Compression:

Stored size: 543 Bytes

Contents

module ExpressTemplates
  module Components
    # A Row is a Container implemented as a div with
    # a CSS class "row"
    #
    # An optional dom ID may be specified as a symbol.
    #
    # Example:
    #
    #     row(:main) {
    #       p "Some content"
    #     }
    #
    # This will render as:
    #
    #     <div id="main" class="row"><p>Some content</p></div>
    #
    class Row < Container
      include Capabilities::Configurable

      emits {
        div.row(my[:id]) {
          _yield
        }
      }
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
express_templates-0.2.7 lib/express_templates/components/row.rb
express_templates-0.2.6 lib/express_templates/components/row.rb
express_templates-0.2.5 lib/express_templates/components/row.rb
express_templates-0.2.4 lib/express_templates/components/row.rb
express_templates-0.2.3 lib/express_templates/components/row.rb
express_templates-0.2.2 lib/express_templates/components/row.rb