Issue #8631 has been reported by rosenfeld (Rodrigo Rosenfeld Rosas).

----------------------------------------
Feature #8631: Add a new method to ERB to allow assigning the local variables from a hash
https://bugs.ruby-lang.org/issues/8631

Author: rosenfeld (Rodrigo Rosenfeld Rosas)
Status: Open
Priority: Low
Assignee: 
Category: 
Target version: 


It would be interesting if ERB could allow a hash instead of a binding for processing the template.

We wouldn't have to do hacks like:

b = OpenStruct.new(hash).instance_eval{ binding }



-- 
http://bugs.ruby-lang.org/