0

我想将文件系统中的外部资源导入 Liferay (6.1) 中的 Web 内容模板。这可以通过 Freemarker 或 Velocity 的包含指令 (#include) 来完成吗?

4

1 回答 1

0

通过 Velocity - 不,安全规则只允许从 Template-Root 目录导入(包含)模板,请参阅 Velocity 文档:https ://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html#包括

由 Freemarker - 是的,请参阅文档:http: //freemarker.org/docs/ref_directive_import.html

于 2014-04-15T15:37:45.687 回答