title: Codeigniter Template library, add_js() method
body: <p>using <a href="http://williamsconcepts.com/ci/codeigniter/libraries/template/reference.html" rel="nofollow noreferrer">This Template Library</a></p>
  
  <p>When I try and use the <code>add_js()</code> function it errors out.  I add the regions <code>$_scripts</code> to the template header file but when I load the page it says undefined variable <code>_scripts</code>.</p>
  
  <p>any thoughts?</p>
  
  <p>changed <code>&lt;?= $_scripts ?&gt; to &lt;?= (isset($_scripts)) ? $_scripts : “”; ?&gt;</code></p>
  
  <p>and obviously I lose the error but the js file still isn't loading. </p>
  
  <p>I did an echo at each step though the <code>add_js()</code> method and the output is correct.  I also did an output of <code>$this-&gt;js</code> and they both had the correct output.  So it gets through the <code>get_js</code> method fine and sets the class variable fine but I don't get anything added to the actual page. </p>