title: Can I render an ERB file to an HTML string inside of a gem (outside of ActionController::Base)?
body: <p>I am making a gem that will generate a .html file inside of a Rails project's public/ directory. It will be used to automatically generate documentation from Cucumber scenarios.</p>
  
  <p>It would be extremely convenient for me to be able to template the HTML file as ERB, that way I can pass in variables, have ERB do it's thing, then spit out the raw HTML to generate the file from.</p>
  
  <p>I am aware of <code>ActionController::Base#render_to_string</code>, but within the gem I am obviously outside the scope of this method. Is there another way to do this? My other option is to define the markup in a heredoc, but I'd rather stay away from that if it's possible to just write ERB files.</p>