Ninja 框架:我们真的可以使用 Mustache 模板引擎而不是 FreeMarker 吗?

Ninja Framework: Can we really use Mustache template engine instead of FreeMarker?

官方页面(https://www.ninjaframework.org/documentation/modules.html) mentions Mustache template engine and its referenced page(https://github.com/kpacha/ninja-mustache)好像说可以使用Mustache模板引擎。是真的吗?

我们向 pom.xml 添加了以下依赖项,但 Eclipse 在 pom.xml 中此依赖项的第一行报告错误,我们无法构建 Ninja Web 应用程序。

<dependency>
    <groupId>org.ninjaframework</groupId>
    <artifactId>ninja-mustache-module</artifactId>
    <version>0.1.1</version>
</dependency>

如果可能,我们应该如何避免错误并使用 Mustache 模板引擎而不是 FreeMarker?

我检查了该项目,它的 Maven 工件似乎没有发布在任何 Maven 工件上,Maven 中央存储库和 Github Maven 注册表都没有发布。

登陆网站https://kpacha.github.io/ninja-mustache/ contains links for downloading the project itself. The repository https://github.com/kpacha/ninja-mustache包含以下目录:

  • ninja-mustache-demo
  • ninja-mustache-module

ninja-mustache-demo导入pom.xml中的ninja-mustache-module,作为示例。它假定 ninja-mustache-module 已通过命令 mvn clean install.

手动打包并安装到本地 Maven 存储库

我看到的唯一方法是将 ninja-mustache-module 作为 Maven 模块包含到您的存储库中并将其添加为依赖项。