我为我的Metalsmith网站使用了Underscore的模板引擎,并且在访问footer部分时遇到了一些问题。我收到一条错误消息: ReferenceError: footer is not defined
我应该怎么称呼它?我究竟做错了什么? 谢谢。 这是我的Metalsmith构建文件的模板部分: ...
.use(layouts({
engine: 'underscore
// run with console open
//and paste following when you hit the debugger:
/*
_.templateSettings = {
interpolate: /\{\{(.+?)\}\}/g
};
var template = _.template("Hello {{ nam