Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4: raw block helpers #444

Closed
jknack opened this issue Nov 9, 2015 · 1 comment
Closed

v4: raw block helpers #444

jknack opened this issue Nov 9, 2015 · 1 comment
Milestone

Comments

@jknack
Copy link
Owner

jknack commented Nov 9, 2015

{{{{raw-helper}}}}
  {{bar}}
{{{{/raw-helper}}}}

see handlebars-lang/handlebars.js#730

and http://handlebarsjs.com/block_helpers.html#raw-blocks

@jknack jknack added this to the 4.0.0 milestone Nov 9, 2015
@jknack jknack closed this as completed in 9fcbf00 Nov 9, 2015
@ghost
Copy link

ghost commented Feb 28, 2016

Hello,

I don't get how to write a working raw helper.

public class RawHelper implements Helper<Object> {

    @Override
    public CharSequence apply(Object t, Options options) throws IOException {
        return options.fn.text();
    }

}
{{{{raw}}}}
{{myhelperforclientside test}}
{{{{/raw}}}}

This give me a:

com.github.jknack.handlebars.HandlebarsException: could not find helper: 'myhelperforclientside'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant