和jsp的include标签的作用类似,里面也是分相对路径和绝对路径。

freemarker的根路径比较奇特的,结构图如下:

----webroot
-------page
------------ftl
------------a.ftl
------------b.ftl
现在将a.ftl包含进b.ftl中
<#include "/page/ftl/a.ftl" >
webroot相当于根,用一种比较土的方式理解,这个webroot用于代表<#include "/page/ftl/a.ftl" > 里面的第一个"/"。

相关文章:

  • 2021-11-27
  • 2021-12-27
  • 2021-08-03
  • 2022-02-08
  • 2022-02-08
  • 2022-02-08
  • 2022-02-08
  • 2022-02-08
猜你喜欢
  • 2021-12-19
  • 2022-02-08
  • 2021-09-21
  • 2022-12-23
  • 2022-03-07
  • 2022-12-23
相关资源
相似解决方案