Sha256: 86a3b5ee03b57dc149229d7caaf7afd4a6cb358d449e8113e746f7a925c13d89
Contents?: true
Size: 821 Bytes
Versions: 1
Compression:
Stored size: 821 Bytes
Contents
module Locomotive module Steam module Liquid module Tags class Extends < ::Liquid::Extends private def parse_parent_template parent = options[:parent_finder].find(options[:page], @template_name) # no need to go further if the parent does not exist raise PageNotFound.new("Extending a missing page. Page/Layout with fullpath '#{@template_name}' was not found") if parent.nil? ActiveSupport::Notifications.instrument("steam.parse.extends", page: options[:page], parent: parent) # the source has already been parsed before options[:parser]._parse(parent, options.merge(page: parent)) end end ::Liquid::Template.register_tag('extends'.freeze, Extends) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
locomotivecms_steam-1.0.0.pre.alpha.2 | lib/locomotive/steam/liquid/tags/extends.rb |