Class: CML::Tags::Group

Inherits:
CML::Tag show all
Defined in:
lib/cml/tags/group.rb

Constant Summary collapse

Template =
<<-HTML.freeze
{{label}}
  {{content}}
HTML

Instance Attribute Summary

Attributes inherited from CML::Tag

#attrs, #cml, #tag

Instance Method Summary collapse

Methods inherited from CML::Tag

#children, #classes, #convert, #gold=, #gold?, #initialize, #instructions, #label, #legend, #name, #prefix, #raw_label, #to_html, #to_liquid, #to_s, #validations, #value, #wrapper, #wrapper_classes

Constructor Details

This class inherits a constructor from CML::Tag

Instance Method Details

#dataObject



13
14
15
# File 'lib/cml/tags/group.rb', line 13

def data
  super.merge({"content" => Parser.new(@cml.inner_html, @opts.merge(:no_wrap => true)).to_html})
end

#validate?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/cml/tags/group.rb', line 9

def validate?
  false
end