Method: Nitro::Morphing.emit_start

Defined in:
lib/nitro/compiler/morphing.rb

.emit_start(name, attributes) ⇒ Object



221
222
223
224
# File 'lib/nitro/compiler/morphing.rb', line 221

def self.emit_start(name, attributes)
  attrs = attributes.map{ |k, v| %|#{k}="#{v}"| }.join(' ')
  attrs.blank? ? "<#{name}>" : "<#{name} #{attrs}>"
end