Module: Fiveruns::Tuneup::Templating

Included in:
Bar, Panel, RootStep, Step::Extra
Defined in:
lib/fiveruns/tuneup/templating.rb

Instance Method Summary collapse

Instance Method Details

#h(text) ⇒ Object



8
9
10
# File 'lib/fiveruns/tuneup/templating.rb', line 8

def h(text)
  CGI.escapeHTML(text)
end

#to_htmlObject



12
13
14
# File 'lib/fiveruns/tuneup/templating.rb', line 12

def to_html
  ERB.new(template).result(binding)
end