I have an ERB template inlined into Ruby code:
require \'erb\' DATA = { :a => \"HELLO\", :b => \"WORLD\", } template = ERB.new <<-EOF
This article explains this nicely.
http://www.garethrees.co.uk/2014/01/12/create-a-template-rendering-class-with-erb/