Module: Haml::Precompiler

Defined in:
lib/template-inheritance/exts/haml.rb

Instance Method Summary collapse

Instance Method Details

#__prerender_tag__Object



13
# File 'lib/template-inheritance/exts/haml.rb', line 13

alias_method :__prerender_tag__, :prerender_tag

#prerender_tag(name, self_close, attributes) ⇒ Object



14
15
16
17
18
19
# File 'lib/template-inheritance/exts/haml.rb', line 14

def prerender_tag(name, self_close, attributes)
  # merge given attributes with default attributes from options
  defaults = Tilt::HamlTemplate.options[:default_attributes][name.to_sym]
  attributes = defaults.merge(attributes) if defaults
  __prerender_tag__(name, self_close, attributes)
end