D
D
Dmitry Pyrkin2019-09-02 13:07:35
JavaScript
Dmitry Pyrkin, 2019-09-02 13:07:35

Mixin in mixin is it possible to use?

Good afternoon, I'm interested in such a question: can a mixin be used in a mixin?

include ../project_title/project_title
include ../project_number/project_number
include ../project_pic/project_pic
       
mixin video_preview(project_pic-pic,project_title-text,project_title-textstyle,project_number-text,project_number-textstyle)
    .video_slide
            a(href="#")
                +project_pic(project_pic-pic)
                .info
                    img(src="images/play.png", alt="", class="play")
                    .text
                        +project_title(project_title-text,project_title-textstyle)
                        +project_number(project_number-text,project_number-textstyle)

in the project_title file
mixin project_title(text, textstyle)
    h1(class=textstyle)=text

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kovalsky, 2019-09-02
@ps1panda

Answer from the comments: information on the topic can be found in one of the pug.js issues

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question