Hello,
I imagine there is a very simple solution to this problem but after many hours cannot figure out what should be quite trivial. BTW I am using IntelliJ IDEA....
I created a mvc project using the jooby-cli and am trying to work with Handlebars.java
So I have a main class that is below and the line use(new Hbs()) has 2 issues:
1. "use" is deprecated in favour of "mount" (changing it does not help) and
2. compiler is complaining that new Hbs() has Hbs provided but required type is router. This makes no sense????
package app;
import io.jooby.Jooby;
import org.jooby.hbs.Hbs;
public class App extends Jooby {
{
use(new Hbs());
mvc(new Controller());
}
public static void main(final String[] args) {
runApp(args, App::new);
}
}
My pom file is using:
...
<jooby.version>2.9.3</jooby.version>
<jooby.hbs.version>1.6.8</jooby.hbs.version>
<handlebars.java.version>4.2.0</handlebars.java.version>
...
<distributionManagement>
<relocation>
<groupId>io.jooby</groupId>
</relocation>
</distributionManagement>
...
<dependency>
<groupId>org.jooby</groupId>
<artifactId>jooby-hbs</artifactId>
<version>${jooby.hbs.version}</version>
</dependency>
<dependency>
<groupId>com.github.jknack</groupId>
<artifactId>handlebars.java</artifactId>
<version>${handlebars.java.version}</version>
<type>pom</type>
</dependency>