Sha256: 5203981f1d0350964a611488462a428d62ae4b47bd23a045ae79bcf177c23faa
Contents?: true
Size: 539 Bytes
Versions: 1
Compression:
Stored size: 539 Bytes
Contents
module Locomotive module Plugin module Liquid # @private module TagSubclassMethods # Check to see if this tag is enabled in the liquid context and render # accordingly def render(context) enabled = context.registers[:enabled_plugin_tags] if enabled && enabled.include?(self.class) super elsif self.respond_to?(:render_disabled) self.render_disabled(context) else '' end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
locomotive_plugins-1.0.0.beta2 | lib/locomotive/plugin/liquid/tag_subclass_methods.rb |