Javascript Hogan,子目录中的引用文件
使用部分继承或模板继承,是否真的不可能从子目录引用Javascript Hogan,子目录中的引用文件,javascript,node.js,hogan.js,Javascript,Node.js,Hogan.js,使用部分继承或模板继承,是否真的不可能从子目录引用.mustache文件 换句话说,具有如下目录结构 |- views ||- templates |||- base.mustache ||- somePage.mustache 其中somePage.mustache是与 {{< templates/base }} {{$content}} ... {{/content}} {{/ template/super }} 如果基础mustache文件不在子目录中,但不适用于添加的“
.mustache
文件
换句话说,具有如下目录结构
|- views
||- templates
|||- base.mustache
||- somePage.mustache
其中somePage.mustache
是与
{{< templates/base }}
{{$content}}
...
{{/content}}
{{/ template/super }}
如果基础mustache文件不在子目录中,但不适用于添加的“templates/”
,则这两种方法都有效。使用Hogan.js真的不可能吗,或者我遗漏了什么。。。因为我已经尝试了所有我能想到的逻辑变化。。。官方规范并没有明确说明这应该如何工作
{{> templates/base}}
...