How to pass PUG ( JADE ) file which you need to take?

When the following code fails to insert the row. It turns out the include pages/#{Page}. What to do in my case and is there any simpler options? Thanks in advance)

extends layouts/default

block header
 include partials/header

block main
 include pages/#{Page}

block footer
 include partials/footer
June 27th 19 at 14:58
1 answer
June 27th 19 at 15:00
Solution
Pug does not support dynamic include, you can use a case / if or determine the file to render on the server.
ok. Sorry, but thank you) - tracey_Stoltenberg72 commented on June 27th 19 at 15:03

Find more questions by tags HTMLPugNode.js