Sha256: 555ce47819188877d4a60f47c840da9674b0ab590e9f845dd929c752cebf0a6a

Contents?: true

Size: 433 Bytes

Versions: 33

Compression:

Stored size: 433 Bytes

Contents

# frozen_string_literal: true

module Bridgetown
  # A Bridgetown::Page subclass to handle processing files without reading it to
  # determine the page-data and page-content based on Front Matter delimiters.
  #
  # The class instance is basically just a bare-bones entity with just
  # attributes "dir", "name", "path", "url" defined on it.
  class PageWithoutAFile < Page
    def read_yaml(*)
      @data ||= {}
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
bridgetown-core-0.12.1 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.12.0 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.11.2 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.11.1 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.11.0 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.10.2 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.10.1 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.10.0 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.9.0 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.8.1 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.8.0 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.7.2 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.7.1 lib/bridgetown-core/page_without_a_file.rb