Files
cloudron-box/dashboard/oidc_login.html
Girish Ramakrishnan e87d2e1218 Fix issue where footer/name can break templates
stringify the template variables at render time

JSON.stringify - will escape out quotes
<%- renders as-is without any more escaping
2025-11-23 11:17:59 +01:00

24 lines
432 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title><%= name %> Login</title>
<script>
window.cloudron = <%- JSON.stringify({
iconUrl: iconUrl,
name: name,
note: note,
submitUrl: submitUrl,
footer: footer,
language: language
}) %>;
</script>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/login.js"></script>
</body>
</html>