Answer the question
In order to leave comments, you need to log in
How to rewrite the exported PUG/jade/twig __express() middleware function?
Is there any way to rewrite the file lookup function of the template engine and apply it in express?
In particular, I'm interested in the possibility that the program determines the current path to the controller file and substitutes this directory structure in the view search, unless otherwise manually specified. That is, I write res.render('list'), and it automatically substitutes /controllers/main/list if the command is launched from the app/controllers/main/ folder
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question