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