Google Apps Script recommends that you separate your CSS and JS from the HTML, using .html files. I have read and followed this documentation, but it's not working for me. Are the scriplets not working correctly? Here is what I have:
Html:
<!DOCTYPE html>
<html>
<head>
<?!= include('Stylesheet'); ?>
<?!= include('Javascript'); ?>
<base target="_top">
<link rel="stylesheet" href="https://ssl.gstatic.com/docs/script/css/add-ons1.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
Javascript.html
<script>
/* stuff */
</script>
Stylesheet.html
<style>
/*stuff*/
</style>
.gs
function doGet(request) {
return HtmlService.createTemplateFromFile('Page').evaluate();
}
function include(filename) {
return HtmlService.createHtmlOutputFromFile(filename).getContent();
}
<?!= include('Stylesheet'); ?>and<?!= include('Javascript'); ?>lines are being displayed as text on the sidebar for some reasondoGet()function from the code editor, and see if you get a prompt to authorize the code. There is nothing wrong with the code. Something else is wrong.