G
G
game8022017-07-01 22:08:20
HTML
game802, 2017-07-01 22:08:20

How to implement the ability to insert extends in the middle of a file (Pug)?

Good afternoon, dear connoisseurs.
I had a problem that I could not cope with, so I would like to ask you for help.
The crux of the problem is this:
index.pug

extends layout/layout 

block vars
  - title = 'test page'

block content
  .container
    include modules/navigation

..... Много много всего

    include modules/test-modules
    // Интересует вот этот момент
      block text
        p test text

modules/test-modules
.container
  block text

How can I make it possible to redefine the contents of the block inside modules/test-modules?
As far as I understand, this is impossible to implement, right?
If there are any crutches or something like that, then I will be glad to take them into my project, as this will help me a lot in further development.
Thank you for your attention and help in resolving this issue!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question