1

I don't want to set my assets (CSS/JS, menu, etc) on each view from my project. Is there any way to set a base template and then call views just to fill its body?

Example:

<!-- my base template -->
<html>
    <head>
        <!-- my assets here -->
    </head>
    <body>
        <%= view.render() %> <!-- example of where I would render the views -->
    </body>
</html>

How could I do that?

Claudio Holanda
  • 2,455
  • 4
  • 21
  • 25

1 Answers1

0

I've seen this done here but have yet to see how that works. Another option is to use EJS partials.

Bardi Harborow
  • 1,803
  • 1
  • 28
  • 41