Martin Gallauner10,806 Points
No Autoimport for HandlebarsTemplateEngine
I followed Craig's instructions but somehow Intellij don't want to Autoimport the HandlebarTemplateEnginge class and I have no idea what I'm missing. The handlebar/mustache Plugin is installed.
This is how my dependencies look like:
testCompile group: 'junit', name: 'junit', version: '4.12'
I made a Screenshot, I hope that helps.
Trent Christofferson15,399 Points
Make sure you have already created it :). Assuming it is there make sure the class is not private or, if it is not in the same package, make sure it is not package-private (where it is usually public, there is nothing there). Another issue could be the class's initializer. Make sure that is accessible from where you're trying to access it.
Sławomir Lasik7,792 Points
Try to add
import spark.ModelAndView; import spark.template.handlebars.HandlebarsTemplateEngine;
import static spark.Spark.get;
If it works it is something with intellij. That tool is still a bit mystery for me.