Hello,
I have included stylesheet and javacript file references to several of my html files successfully in the past. Recently I'm in need to included a menu file to many pages, but it has been unsuccessful.
I've tried to do this :
function include(Menu) {
return HtmlService.createTemplateFromFile(Menu)
.evaluate()
.setSandboxMode(HtmlService.SandboxMode.IFRAME)
.getContent();
}
and used this in all of the other pages as needed.
My menu file is formated as Menu.html
<nav id="menu-wrap"><div id="menu-trigger">Menu</div>
<ul id="menu">
<li><a onclick="google.script.run.showControlPanel()">Home</a></li>
<li>
<a href="">Categories</a>
<ul>
<li>
<a href="">Por Funcionarios</a>
<ul>
More Code...
</ul>
</nav>
Thank you for the help in advance
Wilson