Class: StrippedHtmlTemplate

Inherits:
BabyErubis::Html
  • Object
show all
Defined in:
lib/keight/skeleton/app/action.rb

Instance Method Summary collapse

Instance Method Details

#parse(input, *args) ⇒ Object



9
10
11
12
13
# File 'lib/keight/skeleton/app/action.rb', line 9

def parse(input, *args)
  ## strip spaces of indentation
  stripped = input.gsub(/^[ \t]+</, '<')
  return super(stripped, *args)
end