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
Most of my non-static routes are just retrieving HTML pages but I like it to look extremely organized. Let me know if I can improve this and how! Thanks
Yes, you can include include() calls inside of templates that already have include() calls. That is the correct way to structure things if you have lots of boilerplate.
Hello, I wasn't sure where to ask this issue I'm having at, so I decided to do it here.
Say I had this in a partial file like partials/base.ejs, where it includes the base parts for all my pages, like including css/js, navbar, etc.:
Is there a way to use that partial as a base wrapper around another partial file so that I don't have to do something like:
where the base1.ejs would be all the code required before, and the base2.ejs would be all the code required after, like closing tags.
Is EJS a correct method to doing this, or should I be doing it a different way or is this possible at all? Thanks!
The text was updated successfully, but these errors were encountered: