Method: WLang::Html::HighOrderFunctions#plus

Defined in:
lib/wlang/html.rb

#plus(buf, fn) ⇒ Object



30
31
32
33
34
# File 'lib/wlang/html.rb', line 30

def plus(buf, fn)
  val = evaluate(fn)
  val = to_html(val) unless val.is_a?(Template)
  render(val, nil, buf)
end