I
I
isvetlov2017-02-26 14:11:11
HTML
isvetlov, 2017-02-26 14:11:11

Are there nesting limits in Pug templates?

There is a layout.pug file that includes wrapper header and author, three blocks, I write them as mixins, while the header is nested in the wrapper normally, but the author does not get into the final tree at all.

include ../page-wrapper/page-wrapper
include ../page-header/page-header
include ../author/author

  body
    +page-wrapper
      +page-header
        +author
      block page-content
      +page-footer

I tried ordinary classes instead of mixins, the same thing happens, nested one level, and the rest are not, but the classes at least get into the layout, they just sit next to each other without nesting.
I suspect that the answer is obvious, but alas, I could not come to it on my own.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2017-02-26
@werty1001

No. _

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question