You can pass data to your [[base/Google Apps Script/Google Apps Script|Google Apps Script]] [[web app]] on load using the [[doGet function]].
First, you need to store the `HTMLService` template as a variable so that you can assign additional variables to it before evaluating it. Note that we are creating a template with `HTMLService.createTemplateFromFile`, not an output as with `HTMLService.createOutputFromFile`.
```JavaScript
function doGet(e){
var tmp = HtmlService.createTemplateFromFile("index");
tmp.title = "Hello Bootstrap";
return tmp.evaluate();
}
```
In your HTML, you no longer need to define the variable `title`, you simply access `title` when needed (in index.html):
```HTML
<body>
<h1>
<?= title; ?>
</h1>
</body>
```