-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"TypeError: undefined is not a function" in generated file #17
Comments
Can you try with the TJ haml lib? compiler: 'visionmedia' That error is weird, https://haml2erb.org/ compiles the code correctly. |
I've got the same error.
will produce the following error:
Setting the compiler to the default |
Can confirm the above error... |
Please open the issue on the relevant haml project. |
The HAML-js lib has a number of issues (21 as of June 2017). |
Sounds like it is unmaintained.... |
with this library you can't use regular Ruby syntax (for attributes) like: |
That's an issue in the var haml = require('gulp-haml')
gulp.src('path/to/stuff')
.pipe( haml({
compiler: 'visionmedia'
})
) |
AnalyzePlatypus, i did, both compilers: creationix and visionmedia are working only with Ruby1.9 syntax. |
Hmm. |
AnalyzePlatypus, that's why im not using gulp-haml-ruby, because Ruby requests are slow. |
Oh, absolutely. |
AnalyzePlatypus, to be honest, it's not broken. Compiler works perfect, but with Ruby1.9 syntax only and has no other Ruby features like: include from other file. Because it's just a compiler, not a full-functionality language. |
I don't know.
|
I just found Pug, best replacement for Haml. |
Replace Haml with Pug and re-code your 10000 lines of code. |
Hi, I have the following HAML:
But it's outputting the following error message in the generated file:
It seems to work if I remove the
{:lang => "en"}
part, but I want to put a lang attribute here, so removing it is not an option.Also, if it helps, here's how I'm declaring my gulpfile task:
Anyway, let me know if you need any more info :) Thanks
The text was updated successfully, but these errors were encountered: