Sha256: 8bb2aeb9147deb677c7fdb99537052ce6f5761cb14cd89557841e2bdddd01636
Contents?: true
Size: 688 Bytes
Versions: 13
Compression:
Stored size: 688 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: attributes[:options] }) end def render_element(context, element) element.content.to_s 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
13 entries across 13 versions & 1 rubygems