Sha256: 3b16cfeb5d74e62fc6e9fb43db467498df06fecb3da365871bea92c332283b7d
Contents?: true
Size: 311 Bytes
Versions: 5
Compression:
Stored size: 311 Bytes
Contents
module Jekyll class IncludeTag < Liquid::Tag def initialize(tag_name, file, tokens) super @file = file.strip end def render(context) File.read(File.join(Jekyll.source, '_includes', @file)) end end end Liquid::Template.register_tag('include', Jekyll::IncludeTag)
Version data entries
5 entries across 5 versions & 2 rubygems