class Temple::ERB::Trimming

@api public
Deletes spaces around ‘<% %>’ and leave spaces around ‘<%= %>’.
ERB trimming like in erubis

def on_multi(*exps)

def on_multi(*exps)
  exps = exps.each_with_index.map do |e,i|
    if e.first == :static && i > 0 && exps[i-1].first == :code
      [:static, e.last.lstrip]
    elsif e.first == :static && i < exps.size-1 && exps[i+1].first == :code
      [:static, e.last.rstrip]
    else
      e
    end
  end if options[:trim]
  [:multi, *exps]
end