You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -16,14 +16,11 @@ class MustachePlugin(app: Application) extends Plugin {
16
16
17
17
lazyvalinstance= {
18
18
vali=newJavaMustache
19
-
i.checkFiles
20
-
//i.loadAllTemplate
21
19
i
22
20
}
23
21
24
22
overridedefonStart(){
25
23
Logger("mustache").info("start on mode: "+ app.mode)
26
-
instance.checkFiles
27
24
instance
28
25
}
29
26
@@ -53,25 +50,20 @@ class JavaMustache extends MustacheAPI{
53
50
Logger("mustache").debug("read in factory: "+ rootPath + resourceName +".html")
54
51
valinput=Play.current.resourceAsStream(rootPath + resourceName +".html").getOrElse(thrownewException("mustache: could not find template: "+ resourceName))
55
52
newInputStreamReader(input)
56
-
}
53
+
}
57
54
}
58
-
factory.setObjectHandler(newTwitterObjectHandler)
55
+
factory.setObjectHandler(newScalaObjectHandler)
59
56
factory
60
57
}
61
58
62
-
private[jba] defcheckFiles {
63
-
if(!Play.getFile("app"+ fs +"assets").exists())
64
-
Logger.warn("app"+ fs +"assets"+ fs +"mustache directory is needed for mustache plugin")
0 commit comments