stringify the template variables at render time JSON.stringify - will escape out quotes <%- renders as-is without any more escaping
24 lines
432 B
HTML
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>
|