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