Sha256: f896c81316ecb36b680ee6eefa70c02a86d960774f9640e5a69fb60807ea8842
Contents?: true
Size: 689 Bytes
Versions: 38
Compression:
Stored size: 689 Bytes
Contents
module Locomotive module Steam module Liquid module Tags module Editable class Control < Base protected def default_element_attributes super.merge({ content_from_default: self.render_default_content, options: @element_options[:options] }) end def render_element(context, element) element.content end def render_default_content super.try(:strip) end end ::Liquid::Template.register_tag('editable_control'.freeze, Control) end end end end end
Version data entries
38 entries across 38 versions & 1 rubygems