Skip to content Skip to sidebar Skip to footer

How To Access Template Variables In The Script Section Of My Html File In Google Apps Script?

I need to access templated variables in the script section of my HTML file. Specifically, I need to use content.price. I can access content.price just fine in the templated section

Solution 1:

In script section also you'll need to use template tags.

Something like these :

amount: {
  value: <?!= content.price ?>
}

Post a Comment for "How To Access Template Variables In The Script Section Of My Html File In Google Apps Script?"