I\'m writing a command-line tool that will ultimately output an HTML report. The tool is written in Ruby. (I am not using Rails). I\'m trying to keep the logic of the applic
<%= ERB.new(sub_template_content).result(binding) %>
does not work, when you are using erb cli utility, multiple _erbout variables are overriden and only last one is used.
use it like this:
<%= ERB.new(sub_template_content, eoutvar='_sub01').result(binding) %>