H
H
HamSter2016-07-09 12:07:21
Building projects
HamSter, 2016-07-09 12:07:21

Ways to organize jade?

For organizing css, there is SMACSS - “scalable and modular architecture for CSS”,
but what is similar for jade?
For example, now I have the following structure:

- app
    |__  _common
    |     |__ layout
    |     |    |__ _header.jade
    |     |    |__ _footerjade
    |     |
    |     |__ main.jade
    |
    |___ index.jade

I don't think this structure is correct.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Velichko, 2016-07-12
@HamSter007

I have all mixins. There are modules that are like building blocks, and there are pages, this is the place where I assemble the page from them
https://github.com/zoxon/gulp-front

A
Alexey Ukolov, 2016-07-09
@alexey-m-ukolov

It's not very clear what the question is. pug/jade has inheritance, parshials and mixins. What else is needed in order to make a scalable and modular architecture?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question