title: Node.js and swig template engine - including template inside template
body: <p>I trying to create main page (part of node.js and mongoDB application) that includes login form.
  To add view part I included js files with function that returns HTML, but as I can see much better is using template engine. 
  Everything is OK until I including one compiled swig part inside another one.
  The output of main page is OK, but login part outputs like text on the page.
  How is possible to output the login HTML as HTML instead of plain text?</p>
  
  <p>Does more information needed to understand the issue?</p>
  
  <p>Thank you in advance.</p>
  
  <pre><code>var swig  = require('swig');
  var mainPage_tpl = swig.compileFile(__dirname+'/../views/mainpage_tpl.html');
  var formLogin_tpl = swig.compileFile(__dirname+'/../views/login_tpl.html');
  
  var loginOutput =  formLogin_tpl();
  var mainPageOutput = mainPage_tpl({
      title: 'Sometitle',
      pagetitle: 'Somepagetitle',
      content: loginOutput
  });
  
  exports.get = function(req, res){
      res.writeHead(200, {'Content-Type': 'text/html'});
      res.write(mainPageOutput);
      res.end();
  }
  </code></pre>
  
  <p>mainpage_tpl.html:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;title&gt;{{title}}&lt;/title&gt;
      &lt;link rel="stylesheet" href="/assets/reset.css" /&gt;
      &lt;link rel="stylesheet" href="/assets/style.css" /&gt;
      &lt;script type="text/javascript" src="/assets/jquery-2.0.0.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="/assets/script.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body id="login_page"&gt;
      &lt;h1&gt;{{pagetitle}}&lt;/h1&gt;
      &lt;div id="content"&gt;{{content}}&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>