W
W
Wasya UK2017-06-08 18:01:10
Pug
Wasya UK, 2017-06-08 18:01:10

Why isn't the pug mixin working?

block content
    main#main.expanded.row
        +normalPost("Hello world")        
    
    mixin normalPost(post)
        .thumbnail.medium-4.large-3.column= post

It seems to be written normally, but it does not work.

Error:
pug_mixins.normalPost is not a function

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Khokhlov, 2017-06-08
@dmc1989

You call it before you declare it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question