module EJS

def evaluate(template, locals = {}, options = {})


# => "Hello world"
EJS.evaluate("Hello <%= name %>", :name => "world")

JavaScript runtime available.
(https://github.com/sstephenson/execjs/) library and a
compiler options. You will need the ExecJS
Evaluates an EJS template with the given local variables and
def evaluate(template, locals = {}, options = {})
  require "execjs"
  context = ExecJS.compile("var evaluate = #{compile(template, options)}")
  context.call("evaluate", locals)
end