ijse / freemarker.js

make freemarker available for node.js with FMPP.
http://freemarker.js.org/
MIT License
111 stars 41 forks source link

模板#import 文件时解析不了 #34

Open wait-hua opened 6 years ago

wait-hua commented 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. 请问这个能支持吗?谢谢