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:



618
619
620
# File 'lib/erubis/enhancer.rb', line 618

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

Instance Method Details

#convert_input(src, input) ⇒ Object



622
623
624
625
# File 'lib/erubis/enhancer.rb', line 622

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