That looks like you're mixing EJS and JavaScript template literals. I'm not sure what you're trying to do there, but I can't help people debug their application code. If you can demonstrate a specific problem with EJS itself, please feel free to reopen this issue.