Created
March 3, 2020 00:01
-
-
Save demoive/f402a11ea33ff7087c111486a799f801 to your computer and use it in GitHub Desktop.
Google Apps Script Helper - HTML Service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Facilitates adding includes into HTML documents. | |
* <?!= include('path/to/filename'); ?> | |
* | |
* https://developers.google.com/apps-script/guides/html/best-practices#separate_html_css_and_javascript | |
*/ | |
function include(filename) { | |
return HtmlService.createHtmlOutputFromFile(filename).getContent(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment