You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
%html
%body
%h1
This is a test file for learning HAML!
And here is what I got:
antonkulaga@antonkulaga-home ~/denigma/semanticchat/public/semantictasks $ haml-coffee -i test.haml
[Haml Coffee] Compiling file test.haml to test.jst
#{ red }[haml coffee] CoffeeScript compilation error:#{ reset } TypeError: Object function () {
switch (this.options.placement) {
case 'amd':
return this.renderAmd();
case 'standalone':
return this.renderStandalone();
default:
return this.renderGlobal();
}
} has no method 'charCodeAt'
TypeError: Object function () {
switch (this.options.placement) {
case 'amd':
return this.renderAmd();
case 'standalone':
return this.renderStandalone();
default:
return this.renderGlobal();
}
} has no method 'charCodeAt'
at Lexer.exports.Lexer.Lexer.clean (/usr/local/lib/node_modules/haml-coffee/node_modules/coffee-script/lib/coffee-script/lexer.js:47:16)
at Lexer.exports.Lexer.Lexer.tokenize (/usr/local/lib/node_modules/haml-coffee/node_modules/coffee-script/lib/coffee-script/lexer.js:28:19)
at Object.exports.compile.compile (/usr/local/lib/node_modules/haml-coffee/node_modules/coffee-script/lib/coffee-script/coffee-script.js:54:39)
at Function.module.exports.CoffeeMaker.compileFile (/usr/local/lib/node_modules/haml-coffee/src/cli/coffee-maker.coffee:56:31)
at exports.run.source (/usr/local/lib/node_modules/haml-coffee/src/cli/command.coffee:141:58)
at Object.oncomplete (fs.js:297:15)
The text was updated successfully, but these errors were encountered:
Seems a problem only when compiling on the CLI from a file. I'll have a look over the weekend. Meanwhile you can either experiment with the online version or compile directly from STDIN:
$ haml-coffee 2.0.0-p0 1↵
Please enter template source code and press Ctrl-D to generate:
%html
%body
%h1
This is a test file for learning HAML!
^D
(function() {
var _ref;if((_ref = window.HAML) == null) { window.HAML = {}; } window.HAML['test'] = function(context) { return (function() { var $o;$o = [];$o.push("<html></html>\n<body></body>\n<h1></h1>\nThis is a test file for learning HAML!"); return $o.join("\n"); }).call(context); };}).call(this);
I tested it with simple haml:
%html
%body
%h1
This is a test file for learning HAML!
And here is what I got:
antonkulaga@antonkulaga-home ~/denigma/semanticchat/public/semantictasks $ haml-coffee -i test.haml
[Haml Coffee] Compiling file test.haml to test.jst
#{ red }[haml coffee] CoffeeScript compilation error:#{ reset } TypeError: Object function () {
switch (this.options.placement) {
case 'amd':
return this.renderAmd();
case 'standalone':
return this.renderStandalone();
default:
return this.renderGlobal();
}
} has no method 'charCodeAt'
TypeError: Object function () {
switch (this.options.placement) {
case 'amd':
return this.renderAmd();
case 'standalone':
return this.renderStandalone();
default:
return this.renderGlobal();
}
} has no method 'charCodeAt'
at Lexer.exports.Lexer.Lexer.clean (/usr/local/lib/node_modules/haml-coffee/node_modules/coffee-script/lib/coffee-script/lexer.js:47:16)
at Lexer.exports.Lexer.Lexer.tokenize (/usr/local/lib/node_modules/haml-coffee/node_modules/coffee-script/lib/coffee-script/lexer.js:28:19)
at Object.exports.compile.compile (/usr/local/lib/node_modules/haml-coffee/node_modules/coffee-script/lib/coffee-script/coffee-script.js:54:39)
at Function.module.exports.CoffeeMaker.compileFile (/usr/local/lib/node_modules/haml-coffee/src/cli/coffee-maker.coffee:56:31)
at exports.run.source (/usr/local/lib/node_modules/haml-coffee/src/cli/command.coffee:141:58)
at Object.oncomplete (fs.js:297:15)
The text was updated successfully, but these errors were encountered: