Class: Haml::Buffer
- Inherits:
-
Object
- Object
- Haml::Buffer
- Defined in:
- lib/template-inheritance/exts/haml.rb
Instance Method Summary collapse
- #__open_tag__ ⇒ Object
- #open_tag(name, self_closing, try_one_line, preserve_tag, escape_html, class_id, nuke_outer_whitespace, nuke_inner_whitespace, obj_ref, content, *attributes_hashes) ⇒ Object
Instance Method Details
#__open_tag__ ⇒ Object
23 |
# File 'lib/template-inheritance/exts/haml.rb', line 23 alias_method :__open_tag__, :open_tag |
#open_tag(name, self_closing, try_one_line, preserve_tag, escape_html, class_id, nuke_outer_whitespace, nuke_inner_whitespace, obj_ref, content, *attributes_hashes) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/template-inheritance/exts/haml.rb', line 24 def open_tag(name, self_closing, try_one_line, preserve_tag, escape_html, class_id, nuke_outer_whitespace, nuke_inner_whitespace, obj_ref, content, *attributes_hashes) defaults = Tilt::HamlTemplate.[:default_attributes][name.to_sym] attributes_hashes.unshift(defaults) if defaults __open_tag__(name, self_closing, try_one_line, preserve_tag, escape_html, class_id, nuke_outer_whitespace, nuke_inner_whitespace, obj_ref, content, *attributes_hashes) end |