You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sure this is a stupidly simple problem - but I'm staring at it and just can't see what is going on!
Views are in a folder two levels below the executable (in www/views) and jet is configured like this:
engine = jet.New("www/views", ".jet")
I have a template www/views/register.jet that works just fine, with the page displayed. I then add another template to the folder 'header.jet' and add the following to the top of register.jet
{{ include "./header.jet" }}
But if I reload the page, I get an error:
Jet Runtime Error ("/register":1): template /header.jet could not be found
I have tried various things such as addint the path, such as www/views/header.jet but cannot get it to work.
Thanks for any thoughts..
The text was updated successfully, but these errors were encountered:
I'm sure this is a stupidly simple problem - but I'm staring at it and just can't see what is going on!
Views are in a folder two levels below the executable (in www/views) and jet is configured like this:
engine = jet.New("www/views", ".jet")
I have a template www/views/register.jet that works just fine, with the page displayed. I then add another template to the folder 'header.jet' and add the following to the top of register.jet
{{ include "./header.jet" }}
But if I reload the page, I get an error:
Jet Runtime Error ("/register":1): template /header.jet could not be found
I have tried various things such as addint the path, such as www/views/header.jet but cannot get it to work.
Thanks for any thoughts..
The text was updated successfully, but these errors were encountered: