stringify the template variables at render time JSON.stringify - will escape out quotes <%- renders as-is without any more escaping
23 lines
420 B
HTML
23 lines
420 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title><%= name %> Login</title>
|
|
|
|
<script>
|
|
window.cloudron = <%- JSON.stringify({
|
|
name: name,
|
|
iconUrl: iconUrl,
|
|
loginUrl: loginUrl,
|
|
language: language,
|
|
apiOrigin: apiOrigin
|
|
}) %>;
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<div id="app"></div>
|
|
<script type="module" src="/src/proxyauth.js"></script>
|
|
</body>
|
|
</html>
|