class Greeting
def hello(name: 'John Doe')
"Hello #{name}"
end
end
greeting = Greeting.new
Handlebars::Context.new.compile("{{hello}}").call(greeting)
# V8::Error: wrong number of arguments (given 1, expected 0)
I would expect it to return "Hello John Doe" but instead it raises an exception.
Here is how to reproduce this problem
I would expect it to return
"Hello John Doe"
but instead it raises an exception.