Sha256: 2b9eb0f61a50b5da23ddf430214024442791efe7959a35a796e3a55e5c1cb50b

Contents?: true

Size: 455 Bytes

Versions: 4

Compression:

Stored size: 455 Bytes

Contents

module ExpressTemplates
  module Components
    module Presenters
      class All < Container
        include Capabilities::Iteration

        has_argument :id, "Name of the collection", type: :symbol

        def start_tag; ''; end
        def end_tag; ''; end

        contains -> (&block) {
          prepended
          for_all(config[:id]) {
            block.call(self) if block
          }
          appended
        }

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
express_templates-0.11.20 lib/express_templates/components/all.rb
express_templates-0.11.20.rc1 lib/express_templates/components/all.rb
express_templates-0.11.19 lib/express_templates/components/all.rb
express_templates-0.11.18 lib/express_templates/components/all.rb