Requirejs + text plugin + sugar syntax + almond.js

时间:2013-01-17 16:47:41

标签: requirejs almond

我正在使用糖语法将模板加载到我的视图中:

...
var template = require('text!templates/toolbar/toolbar.html')

一切正常,但是当我运行r.js优化器时,我得到了错误

TypeError: Object function () {
        //A version of a require function that passes a moduleName
        //value for items that may need to
        //look up paths relative to the moduleName
        return req.apply(undef, aps.call(arguments, 0).concat([relName, forceSync]));
    } has no method 'toUrl'

0 个答案:

没有答案
相关问题