嗨,我正在尝试从grunt assembly切换到assembly(与gulp成对);我使用的是assemble0.24.3
我当前的问题是:一些内置变量
http://assemble.io/docs/Built-in-Variables.html
不同时处理页面和部分内容,例如:
{{pagename}}
什么也不返回,而
{{basename}}
引发错误:
Message:
utils.expectedType is not a function
Details:
helper: [object Object]
fileName: C:\Progetti\myproject\source\Templates\pages\seminars.html
files: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
view: [object Object]
domainEmitter: [object Object]
domain: [object Object]
domainThrown: false
Stack:
TypeError: utils.expectedType is not a function
at Object.helpers.basename (C:\Progetti\myproject\node_modules\handlebars-helpers\lib\path.js:83:31)
at Object.<anonymous> (C:\Progetti\myproject\node_modules\deep-bind\index.js:61:15)
at C:\Progetti\myproject\node_modules\async-helpers\index.js:331:23
at C:\Progetti\myproject\node_modules\co\index.js:136:8
at new Promise (<anonymous>)
at thunkToPromise (C:\Progetti\myproject\node_modules\co\index.js:135:10)
at toPromise (C:\Progetti\myproject\node_modules\co\index.js:119:55)
at next (C:\Progetti\myproject\node_modules\co\index.js:99:29)
at onFulfilled (C:\Progetti\myproject\node_modules\co\index.js:69:7)
at process.internalTickCallback (internal/process/next_tick.js:77:7)
<h1>{{basename}}</h1>
已添加到索引.html页面文件,而不是研讨会.html(??)
[编辑]
我必须补充,我也在使用车把助手(版本0.10.0)