Skip to content

very simple Google Apps Script function to replace text inside HTML template

License

Notifications You must be signed in to change notification settings

meksone/tokensInTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🪙 tokensInTemplate

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.

You can use it like

  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 StackOverflow (see comment 2 from Tanaike)

About

very simple Google Apps Script function to replace text inside HTML template

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published