0

after i have try so many times to find a solutions i'm asking some help when i try <% include partials/header.ejs %> with AWS cloud 9 it gives a error i have created the files for header named header.ejs and footer.ejs inside of directory partials that have parent direct views.

something like this

This is the home page

Pisika
  • 1

1 Answers1

0

Try using this new syntax instead of the old one.

<%- include('partials/header.ejs') %>)

You can use similar syntax for the footer.

MLavoie
  • 9,671
  • 41
  • 36
  • 56
Suvarna
  • 1
  • 1