title: EJS - pass variable when include
body: <p>I'm using ejs in backend with nodejs.
  I'd like to pass variable when include. When include the header, pass the page title.</p>
  
  <p>index.ejs:</p>
  
  <pre><code>&lt;% include header %&gt;
  &lt;body&gt; . . . &lt;/body&gt;
  &lt;% include footer%&gt;
  </code></pre>
  
  <p>header.ejs:</p>
  
  <pre><code>&lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;%- my_tytle %&gt;&lt;/title&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>footer.ejs:</p>
  
  <pre><code>&lt;/html&gt;
  </code></pre>
  
  <p>How to pass <code>my_title</code> in the include command?</p>