Sha256: a225d271c69a54997133138be8ecaddb190961fecbbbc54b7153e7e2aa5a835b

Contents?: true

Size: 257 Bytes

Versions: 3

Compression:

Stored size: 257 Bytes

Contents

module Staticpress::Content
  module CollectionContent
    include ResourceContent

    def template_types
      find_supported_extensions template_path
    end

    def template_path
      theme.view_for(type) || theme.view_for(:default)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
staticpress-0.6.2 lib/staticpress/content/collection_content.rb
staticpress-0.6.1 lib/staticpress/content/collection_content.rb
staticpress-0.6.0 lib/staticpress/content/collection_content.rb