class Jekyll::Tags::IncludeTag

Public Instance Methods

read_file(file, ctx) click to toggle source
# File lib/jekyll/tilt/include_patch.rb, line 8
def read_file(file, ctx)
  pth = Pathutil.new(file)
  out = pth.read(file_read_opts(ctx))
  Tilt::Processor.run_for(out, {
    ext: pth.extname,
    var: {
      site: ctx.registers[:site],
    },
  })
end