播放:如何在另一个模块中引用HTML模板

时间:2015-09-18 18:53:21

标签: scala playframework

给出Play app的以下项目结构......

app
  └ controllers
  └ models
  └ views
conf
  └ application.conf
  └ routes
modules
  └ module1
    └ conf/module1.routes
    └ app/controllers
    └ app/models
    └ app/views
      └ a.scala.html
  └ module2
    └ conf/module2.routes
    └ app/controllers
    └ app/models
    └ app/views
      └ a.scala.html
project
 └ build.properties
 └ Build.scala
 └ plugins.sbt

如何在a.scala.html的{​​{1}}中引用modules/module1/app/views中的b.scala.html

我尝试过任何可能的组合......但没办法。据我所知,HTML模板的范围由目录路径给出。

0 个答案:

没有答案
相关问题