Sha256: 9ccf8fc9899957d3313503dc927670cc1d77755672539870aea03e8f5709a4bd
Contents?: true
Size: 588 Bytes
Versions: 15
Compression:
Stored size: 588 Bytes
Contents
module Locomotive module Wagon module Liquid module Tags class Extends < ::Liquid::Extends def parse_parent_template mounting_point = @options[:mounting_point] page = if @template_name == 'parent' @options[:page].parent else mounting_point.pages[@template_name] end ::Liquid::Template.parse(page.source, { mounting_point: mounting_point, page: page }) end end ::Liquid::Template.register_tag('extends', Extends) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems