在Scala中编译哈巴狗模板

时间:2017-01-21 00:53:24

标签: java scala pug scalatra pugjs

我在我的项目中使用Scalate。 我正在尝试编译一个简单的哈巴狗模板:

html
  head
    title Hello
  body
    h1 Header

Scala代码:

val engine = new TemplateEngine
engine.layout("temp.pug")

我得到错误:

Exception in thread "main" org.fusesource.scalate.TemplateException: scala.Predef$.refArrayOps([Ljava/lang/Object;)Lscala/collection/mutable/ArrayOps;
    at org.fusesource.scalate.TemplateEngine.compileAndLoad(TemplateEngine.scala:782)
    at org.fusesource.scalate.TemplateEngine.compileAndLoadEntry(TemplateEngine.scala:745)
    at org.fusesource.scalate.TemplateEngine.liftedTree1$1(TemplateEngine.scala:446)
    at org.fusesource.scalate.TemplateEngine.load(TemplateEngine.scala:440)
    at org.fusesource.scalate.TemplateEngine.load(TemplateEngine.scala:495)
    at org.fusesource.scalate.TemplateEngine.layout(TemplateEngine.scala:593)

我或图书馆也是吗?

0 个答案:

没有答案