In EJS template engine, how do I "include" a footer?

TIMEX picture TIMEX · Apr 28, 2011 · Viewed 74k times · Source

Let's say I saved a snipplet of a footer. How do I "include" that in my current template?

Answer

Matt H picture Matt H · May 30, 2011

I know this question has already been marked as answered, but I believe what you were looking for is the 'partial' syntax. In EJS, you can include the content from one view template in another like so:

<html>
  <head></head>
  <body>
    Blah blah blah
    <%- partial('footer') %>    
  </body>
</html>