Class: JekyllIncludeRaw::Tag

Inherits:
Jekyll::Tags::IncludeTag
  • Object
show all
Defined in:
lib/jekyll-include-raw/tag.rb

Instance Method Summary collapse

Instance Method Details

#read_file(file, context) ⇒ Object



3
4
5
6
# File 'lib/jekyll-include-raw/tag.rb', line 3

def read_file(file, context)
  contents = File.read(file, **file_read_opts(context))
  "{% raw %}#{contents}{% endraw %}"
end