Sha256: f3c357350e86ebd75a696fd3108aaf25aa75627fdaf3dcc6773c28166eb81ed1

Contents?: true

Size: 629 Bytes

Versions: 28

Compression:

Stored size: 629 Bytes

Contents

# frozen_string_literal: true

module Jekyll
  class StaticFileReader
    attr_reader :site, :dir, :unfiltered_content
    def initialize(site, dir)
      @site = site
      @dir = dir
      @unfiltered_content = []
    end

    # Read all the files in <source>/<dir>/ for Yaml header and create a new Page
    # object for each file.
    #
    # dir - The String relative path of the directory to read.
    #
    # Returns an array of static files.
    def read(files)
      files.map do |file|
        @unfiltered_content << StaticFile.new(@site, @site.source, @dir, file)
      end
      @unfiltered_content
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
jekyll-3.10.0 lib/jekyll/readers/static_file_reader.rb
jekyll-3.9.5 lib/jekyll/readers/static_file_reader.rb
jekyll-3.9.4 lib/jekyll/readers/static_file_reader.rb
jekyll-3.9.3 lib/jekyll/readers/static_file_reader.rb
jekyll-3.9.2 lib/jekyll/readers/static_file_reader.rb
jekyll-3.9.1 lib/jekyll/readers/static_file_reader.rb
jekyll-3.9.0 lib/jekyll/readers/static_file_reader.rb
jekyll-3.8.7 lib/jekyll/readers/static_file_reader.rb
jekyll-3.8.6 lib/jekyll/readers/static_file_reader.rb
jekyll-3.8.5 lib/jekyll/readers/static_file_reader.rb
jekyll-3.6.3 lib/jekyll/readers/static_file_reader.rb
jekyll-3.8.4 lib/jekyll/readers/static_file_reader.rb
jekyll-3.7.4 lib/jekyll/readers/static_file_reader.rb
jekyll-3.8.3 lib/jekyll/readers/static_file_reader.rb
jekyll-3.8.2 lib/jekyll/readers/static_file_reader.rb
jekyll-3.8.1 lib/jekyll/readers/static_file_reader.rb
jekyll-3.8.0 lib/jekyll/readers/static_file_reader.rb
jekyll-3.8.0.pre.rc2 lib/jekyll/readers/static_file_reader.rb
jekyll-3.8.0.pre.rc1 lib/jekyll/readers/static_file_reader.rb
jekyll-3.7.3 lib/jekyll/readers/static_file_reader.rb