Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
dotCMS 是否可以从远程源解析 vtl 文件?
// this doesn't seem to work #dotParse("https://some.random.source.com/vtl/index.vtl")
通常情况下,编写一个插件来完成它会很容易。无需编写任何 java 代码,应该可以执行以下操作:
#set($code = $import.read("https://some.random.source.com/vtl/index.vtl")) $render.eval($context, $code)
缺点是它可能比仅在 dotcms 中渲染 vtl 慢得多。