diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-23 05:51:00 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-23 05:51:00 -0500 |
commit | 69d725d56cb43d92042eecbcc6d306782799ab88 (patch) | |
tree | 519f63929af020effc0ed30eeba86375989a39ff /teleterm/static/index.html.tmpl | |
parent | 0650ecd21a522536c5dc3a764847583e0fae61df (diff) | |
download | teleterm-69d725d56cb43d92042eecbcc6d306782799ab88.tar.gz teleterm-69d725d56cb43d92042eecbcc6d306782799ab88.zip |
pass configuration from the web server to the web app
Diffstat (limited to 'teleterm/static/index.html.tmpl')
-rw-r--r-- | teleterm/static/index.html.tmpl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/teleterm/static/index.html.tmpl b/teleterm/static/index.html.tmpl index c489d87..7a2af50 100644 --- a/teleterm/static/index.html.tmpl +++ b/teleterm/static/index.html.tmpl @@ -4,8 +4,10 @@ <link rel="stylesheet" href="teleterm.css" type="text/css" /> </head> <body> - <h1>{{title}}</h1> <section id="app"></section> + <script type="text/javascript"> + TELETERM_CONFIG = {{json .}}; + </script> <script type="module"> import init from "./teleterm_web.js"; init(); |