title: how can i add inline javascripts to navigation template in Google App Scripts
body: <p>I am trying to develop a navigational menu being referenced to different pages in my app.
  am using Materialize css as a ui and placed the nav codes in a separate file</p>
  <pre><code>        &lt;div id=&quot;navigation&quot;&gt;
      &lt;nav&gt;
        &lt;div class=&quot;nav-wrapper blue darken-3&quot;&gt;
          &lt;div class=&quot;container&quot;&gt;
            &lt;a href=&quot;#&quot; class=&quot;brand-logo&quot;&gt;
            &lt;a href=&quot;#&quot; class=&quot;sidenav-trigger&quot; data-target=&quot;sideMobile&quot;&gt; &lt;i class=&quot;material-icons&quot;&gt;menu&lt;/i&gt; &lt;/a&gt;      
            &lt;ul class=&quot;right hide-on-med-and-down&quot;&gt;
              &lt;li&gt;          
                &lt;a href=&quot;&lt;?= getbaseUrl(); ?&gt; &quot;  class=&quot; waves-effect waves-light&quot; type=&quot;button&quot;  &gt;Incoming Stock&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;&lt;a href=&quot;page.html&quot;&gt;Components&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href=&quot;page.html&quot;&gt;Javascript&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href=&quot;page.html&quot;&gt;Mobile&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
  
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/nav&gt;
  
      &lt;ul class=&quot;sidenav  blue lighten-2&quot; id=&quot;sideMobile&quot;&gt;
        &lt;div class=&quot;container&quot;&gt;
          &lt;li&gt;&lt;a href=&quot;page.html&quot;&gt;Sass&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href=&quot;page.html&quot;&gt;Components&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href=&quot;page.html&quot;&gt;Javascript&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href=&quot;page.html&quot;&gt;Mobile&lt;/a&gt;&lt;/li&gt;
        &lt;/div&gt;
      &lt;/ul&gt; 
      &lt;/div&gt;
  </code></pre>
  <p>which is being reference in the different pages as</p>
  <pre><code>&lt;?!= include(&quot;navBar&quot;); ?&gt;
  </code></pre>
  <p>in the <code>&lt;head&gt;</code> part of the code.</p>
  <p>function include() is in the serverside code as</p>
  <pre><code>return HtmlService.createHtmlOutputFromFile(filename).getContent();
  }
  </code></pre>
  <p>in the doGet part of the app, page is being rendered by</p>
  <pre><code>return HtmlService.createTemplateFromFile(&quot;home&quot;).evaluate();
  </code></pre>
  <p>how can i get to write inline codes in the navBar page? when rendered, all javascript are being displayed as encoded html.</p>
  <p>thank you in advance</p>