Setup a Template Engine

Tell us what’s happening:

I have completed the challenge on Replit. The server is running properly there and the page is rendered as well but all test cases are failing.

Your code so far
This is the link to my code:-

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36 Edg/83.0.478.64.

Challenge: Set up a Template Engine

Link to the challenge:

1 Like

Hello sap_rocks, have you found a solution? I have the same problem

Hello, sap_rocks.

Sorry that this post went under our radar.

I am not sure why you have this line:

app.set('views', './views/pug');

One of the tests searches for:

assert.match(data, /pug-success-message/gi)

Which is only present when the page is rendered, but this is not happening, for me.

@Kazulife, I suggest you open your own topic, with all the necessary details/links/code for us to help you. Your issue might be slightly different.

@Sky020 thank you for your reply.

You are right it may be faster to make my own topic but I prefer to search so as not to overload the forum.

I finally managed to unblock myself thanks to this post:

Set up a template engine - validation error

Thanks again for your participation and good day @Sky020