template code 引用的一些问题

1.问题: 引用同一个norlib.tt 下面的tt  。

              一个KSTrade 正确。

              一个 NDAP就报错。

              报错说源文件某个函数有错误 helper.Common.tt 错误


2.结果:

           NDAP下有一个同名文件 helper.Common.tt

           NDAP--> ndap.tt -> norlib.tt/helper.Interface2Client 


在norlib.tt/helper.Interface2Client这个文件中有一句话: <#@ include file="helper.common.tt"  #>

         我本来认为他理所当然应该 引用 norlib.tt/helper.common.tt

         实际上他先查看ndap/ 这个文件夹下面是否有 helper.common.tt这个文件,不存在再去找 norlib.tt/这个文件夹


我删除ndap/helper.common.tt这个文件就正常了

posted on 2014-03-03 15:15  norsd  阅读(167)  评论(0编辑  收藏  举报

导航