Friday 13 April 2018

[Question] Express Handlebars and Logical Operators (transfer from ejs)

So I have problem to transfer in my "express handlebars" template
EDIT
line from "ejs" template<% if(currentUser && campground.author.id.equals(currentUser._id) { %>
EDIT
<%}%>Yes, I know that I need to use helpers, but I can't figure how and I think I will learn a lot if I see transfer between templates in action on this particulary problem.

Submitted April 13, 2018 at 10:15AM by ExplicitGG

No comments:

Post a Comment