I'm trying to follow your tutorial but, instead of using ejs as a templating language, I'm using handlebars (hbs). I can't seem to make the flash messages appear. In your login.ejs, you write:
<% if (messages.error) { %>
<%= messages.error %>
<% } %>
In my login.hbs, I'm writing (in handlebars):
{{#if messages.error}}
{{messages.error}}
{{/if}}
Do you happen to know what I'm doing wrong?
I'm trying to follow your tutorial but, instead of using ejs as a templating language, I'm using handlebars (hbs). I can't seem to make the flash messages appear. In your login.ejs, you write:
In my login.hbs, I'm writing (in handlebars):
Do you happen to know what I'm doing wrong?