Answer the question
In order to leave comments, you need to log in
How to use BEM+JADE+GULP?
Hello.
I think it's more convenient to use bam with jade.
I dug up such a module https://github.com/ideyuta/nbem
But I can't put it in gulp.
The idea is great, it would be the whole methodology on the machine.
What are similar things?
Answer the question
In order to leave comments, you need to log in
https://github.com/admdh/adm-dev-kit-gulp
https://github.com/tars/tars
cpt.csssr.ru
All builds work in a similar way as the BEM stack. Some of them even have dependencies.
PS But I would not advise.
Boilerplate for jade, stylus and BEM https://github.com/zoxon/gulp-front
There is also a good library of mixins https://github.com/kizu/bemto but this is not for everyone
Try it:
const pug = require('pug');
const pbem = require('pbem');
const scope = pbem({
blocksDir: __dirname + 'views/blocks'
}).precompile();
const separateTemplate = pug.compileFile(__dirname + 'views/page.pug');
let renderedSeparateTemplate = separateTemplate({
block: scope.createBlock
});
div&attributes( attributes() )
!= element('element-name').local('varName', varName)
Hire someone on freelansim.ru
It will not cost too much, and - most importantly - you will not regret it later.
What you are doing now is terrible.
And even if some well-wisher does an invite check, it will not make your code better.
You also need to delete the code \ put a flag that the code has been used.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question