Module: Erubis::DeleteIndentEnhancer

Included in:
DeleteIndentEruby
Defined in:
lib/erubis/enhancer.rb

Overview

delete indentation of HTML.

this is language-independent.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.descObject

:nodoc:



567
568
569
# File 'lib/erubis/enhancer.rb', line 567

def self.desc   # :nodoc:
  "delete indentation of HTML."
end

Instance Method Details

#convert_input(src, input) ⇒ Object



571
572
573
574
# File 'lib/erubis/enhancer.rb', line 571

def convert_input(src, input)
  input = input.gsub(/^[ \t]+</, '<')
  super(src, input)
end