Class: DocTemplate::Tags::DefaultTag
- Defined in:
- lib/doc_template/tags/default_tag.rb
Constant Summary collapse
- TAG_NAME =
'default'
Constants inherited from BaseTag
BaseTag::SOFT_RETURN_RE, BaseTag::UNICODE_SPACES_RE
Instance Attribute Summary
Attributes inherited from BaseTag
Instance Method Summary collapse
Methods inherited from BaseTag
#before_tag, #check_tag_soft_return, #content_until_break, #content_until_materials, #ela2?, #ela6?, #gdoc?, #include_break?, #include_break_for?, #materials, parse, #parse_nested, #parse_template, #placeholder, #placeholder_id, #render, #replace_tag, #tag_data, tag_with_html_regexp, #template_name, #template_path, template_path_for
Instance Method Details
#parse(node, _options = {}) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/doc_template/tags/default_tag.rb', line 8 def parse(node, = {}) return super if DocTemplate::Tags.config.dig('default', 'remove') node['data-parsed'] = true @result = node self end |