handlebars-lang / handlebars.js

Minimal templating on steroids.
http://handlebarsjs.com
MIT License
17.96k stars 2.04k forks source link

Use handlebars helper when returning handlebars.SafeString()? #1903

Closed Whoffie closed 1 year ago

Whoffie commented 1 year ago

Before filing issues, please check the following points first:

Say I'm registering a helper like so in NodeJS:

hbs.registerHelper("headingLoop", function() {
    return new hbs.SafeString("{{otherHelper}}")
}

Calling other helpers won't work using this method, so I'm wondering if there's another way that I'm missing? Thanks.