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

Usage with Java projects #1

Closed
Ramanpreetsingh opened this issue Jan 5, 2018 · 2 comments
Closed

Usage with Java projects #1

Ramanpreetsingh opened this issue Jan 5, 2018 · 2 comments

Comments

@Ramanpreetsingh
Copy link

I have added the maven dependancy in my java spring boot project. But while invoking the helper, it's giving me "could not find helper" error. Do I need to register the helpers or do anything else to use them?

@siordache
Copy link
Member

Yes, you need to register the helpers:

Handlebars handlebars = ...
org.beryx.hbs.Helpers.register(handlebars);

@Ramanpreetsingh
Copy link
Author

Ramanpreetsingh commented Jan 6, 2018

Thanks, it is working now.

Side note to others, to run this : download the groovy-all.jar and add it to the classpath.
With Maven, add this to your dependencies :

<dependency>
    <groupId>org.codehaus.groovy</groupId>
    <artifactId>groovy-all</artifactId>
    <version>2.4.5</version>
</dependency>

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

No branches or pull requests

2 participants