L
L
lavezzi12015-09-25 09:14:24
css
lavezzi1, 2015-09-25 09:14:24

How to use Jade to include content but change the title for each block?

Hello. There are several blocks, almost a page that needs to be inserted into other pages and at the same time change h1 and paragraphs. Do not copy the same code 12 times and change the title there? What function or command to use? Help me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-09-25
@gangstarcj

You need to create a layout, prescribe blocks in it jade-lang.com/reference/extends

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question