ericf / express-handlebars

A Handlebars view engine for Express which doesn't suck.
BSD 3-Clause "New" or "Revised" License
2.31k stars 384 forks source link

Passing argument to helper #183

Closed runemadsen closed 8 years ago

runemadsen commented 8 years ago

In your linked {{yell message}} example, you have implemented your helper in this way:

function(msg) {
 // do something with message
}

However, this doesn't seem to work in the current version. The helper is called, but with undefined as msg.

Is this supposed to work?

runemadsen commented 8 years ago

It seemed that message needed quotes: {{yell "message"}}. Should probably be updated in the example.