cannot get html extension when using handlebars

109 Views Asked by At

sorry this might be a very silly question but I cannot figure it out. So I am using express-handlebars and I want to name my file newpage.handlebars. But it keeps on saving as a text file. However, I want it to be a HTML extension but the name to be newpage.handlebrs. I have my friends file where he did exactly that but he is away so I can't really ask him. Here is a picture of what he did and what I am doing.His file is mypage.handlebars while mine in newpage.handlebars. How should I fix this. Thanks a lot!

file view

properties

2

There are 2 best solutions below

2
On
  • Copy your friend's file, and paste it.
  • Get the content inside your current .handlebars file, and paste inside the new copied file
  • Remove your old .handlebars file, and rename the copied one to have the name yours had
0
On

Found it! Turns out the name can be newpage.handlebars. But to get the html extension you need to start of with a tag. Even with tag it doesn't work.