bemto icon indicating copy to clipboard operation
bemto copied to clipboard

What about single-file version back?

Open f0rmat1k opened this issue 10 years ago • 2 comments

Specificity of my building don't let me use version with includes. Can you add this version?

f0rmat1k avatar Feb 10 '16 18:02 f0rmat1k

Can you elaborate on the specifics of your build process? Multiple files are better maintainable, but I guess I could look into adding a build step to combine everything into one file before publishing to npm.

kizu avatar Feb 10 '16 22:02 kizu

I organized enb-like structure:

myblock  
├── myblock.js  
└── myblock.jade  

But it's very tiring to use relative paths and two time block name: (include ../myBlock/myBlock). Therefore i just use include myBlock (like blocks.exec('myBlock')) and use gulp to collect all of them into to .views directory, where they all are siblings. New bemto structure requires to write for it special rules, because my approach breaks its relative paths (/lib directory). It isn't fatal, but requires body movements.

f0rmat1k avatar Feb 11 '16 04:02 f0rmat1k