2010-08-29 23:41:44 +00:00
|
|
|
module Locomotive
|
|
|
|
module Liquid
|
|
|
|
module Tags
|
|
|
|
module Editable
|
2010-08-31 21:53:30 +00:00
|
|
|
class ShortText < Base
|
2010-08-29 23:41:44 +00:00
|
|
|
|
2010-08-31 21:53:30 +00:00
|
|
|
protected
|
2010-08-29 23:41:44 +00:00
|
|
|
|
2010-08-31 21:53:30 +00:00
|
|
|
def render_element(element)
|
|
|
|
element.content
|
2010-08-29 23:41:44 +00:00
|
|
|
end
|
|
|
|
|
2010-08-31 21:53:30 +00:00
|
|
|
def document_type
|
|
|
|
EditableShortText
|
2010-08-29 23:41:44 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
::Liquid::Template.register_tag('editable_short_text', ShortText)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|