Open wait-hua opened 6 years ago
当index.ftl #include 'subfolder/child.ftl' child.ftl 又import当前目录component下的 #import 'component/menu.ftl' 时报错。 文件目录结构 |-index.ftl |-subfolder |- child.ftl |-component |- menu.ftl
menu.ftl :
Component Child
<#marco page>
Menu page
</#marco>
child.ftl: <#import "component/menu.ftl" as child/> <@child.page />
index.ftl <#include "subfolder/index.ftl" />
Index
import 之后解析出来为null. 请问这个能支持吗?谢谢
当index.ftl #include 'subfolder/child.ftl' child.ftl 又import当前目录component下的 #import 'component/menu.ftl' 时报错。 文件目录结构 |-index.ftl |-subfolder |- child.ftl |-component |- menu.ftl
menu.ftl :
Component Child
<#marco page>
Menu page
</#marco>
child.ftl: <#import "component/menu.ftl" as child/> <@child.page />
index.ftl <#include "subfolder/index.ftl" />
Index
import 之后解析出来为null. 请问这个能支持吗?谢谢