D
D
Dmitry Sergeevich2015-12-07 19:01:49
Pug
Dmitry Sergeevich, 2015-12-07 19:01:49

How to output different headers in Jade templating system?

Hey everyone, I need your help with a template jade:
I have a template.jade that looks something like this:

body

  include ./../include/header.jade

  block content

  include ./../include/footer.jade

Today I ran into the problem of displaying different types of header and footer on certain pages. Moving the includes to page.jade is not an option. Doing a header mixin is also wrong. Maybe you can tell me how to implement this feature correctly?

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