Sha256: 5907e833f91877417ad3b8289d0e786f49381354392e2f0d7fb997615552a644
Contents?: true
Size: 671 Bytes
Versions: 3
Compression:
Stored size: 671 Bytes
Contents
module Locomotive module Steam module Liquid module Tags module Editable class Control < Base protected def default_element_attributes super.merge({ content: 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
3 entries across 3 versions & 1 rubygems