sstephenson/ruby-ejs — pull request #2 by duncanbeevers (2011-10-25 01:08:26+00:00)
Title: Bind to locals

I'm not sure how 'print' gets used inside the EJS evaluation block, and no tests covered its usage.

I made the evaluation context bind to the provided locals object. This makes it simple to forward the provided object along to other renders. For example, in Rails, I can now create a template like this:

<%= JST['another_template'](this) %>