W
W
Wasya UK2017-04-09 13:36:02
HTML
Wasya UK, 2017-04-09 13:36:02

How to transfer to PUG (JADE) the file to be taken?

The following code fails to insert a row. It turns out include pages/#{Page} . What to do in my case, and are there easier options? Thanks in advance)

extends layouts/default

block header
    include partials/header

block main
    include pages/#{Page}

block footer
    include partials/footer

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2017-04-09
@dmc1989

Pug does not support dynamic include, you can use case / if or define a file to render on the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question