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.18.6 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.18.5 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.18.4 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.18.3 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.18.2 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.18.1 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.18.0 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.17.1 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.17.0 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.16.0 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.16.0.beta2 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.16.0.beta1 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.15.0 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.15.0.beta4 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.15.0.beta3 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.15.0.beta2 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.15.0.beta1 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.14.1 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.14.0 lib/bridgetown-core/page_without_a_file.rb
bridgetown-core-0.13.0 lib/bridgetown-core/page_without_a_file.rb