Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
meksone authored Apr 21, 2024
1 parent e91def2 commit 0522a26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ very simple Google Apps Script function to replace text inside HTML template

## Usage
Copy this function to your Google Apps Script project, then create a simple HTML template.
Then, use it like

You can use it like
```javascript
tokensInTemplate('name_of_your_html_template_without_.html',{token1Name: token1Value, token2Name: token2Value ... });
```
Due to a Google Apps Script Bug, **you can't use this function inside a library**, so you must copy all the code inside your script and execute from here.

More info here https://stackoverflow.com/questions/65364534/google-apps-script-html-service-from-library-cant-execute-any-functions-poten
(see comment 2 from Tanaike)

0 comments on commit 0522a26

Please sign in to comment.