S
S
s-morello2019-08-29 01:52:57
Building projects
s-morello, 2019-08-29 01:52:57

How to organize project structure in pug?

At the moment I have:

pug
---- includes (папка) <-- тут блоки по бэму пишу
---- mixins (папка) <-- тут миксины 
-- base.pug <-- тут базовая страница

How is it more correct to assemble blocks in pug, I do it through include, but what is the best way?
Anyone with experience please share.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex Glebov, 2019-08-29
@SkiperX

Folder with layouts, folder with pages, folder with blocks
The blocks themselves are mixins, there are only inclusions on the pages

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question