我想在play框架中使用Bootstrap的图标字体。
当我使用<i class="icon-search" />
时,Bootstrap会在"assets/img/..."中查找图标。这种行为与Play应用程序的结构相冲突,因为图像位于"assets/images/..."中。
因此,我尝试通过为GET请求定义一个额外的路由来重新映射它到"assets/img":
# Map static resources from the /public folder to the /assets URL path
GET /assets/img/*file controllers.Assets.at(path="/public/images", file)
GET /assets/*file controllers.Assets.at(path="/public", file)
但是,这样做会导致编译错误“方法at:(path:String,file:String)play.api.mvc.Call的参数不足。未指定值参数文件。” 在我调用的每个其他公共资产上。
我做错了什么?