JS: Extract placeholders in HTML

This commit is contained in:
Asger Feldthaus
2021-07-20 10:33:54 +02:00
parent b1ce3d1c5a
commit 8666bc1894
8 changed files with 948 additions and 25 deletions

View File

@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<body>
<h1>{{title}}</h1>
{{{subtitle_html}}}
<p><%- body_html %></p>
<p><%= footer %></p>
<script>
var data1 = {{{ user_data1 }}};
var data2 = {{ user_data2 | json | safe }};
var data3 = <%- user_data3 %>;
</script>
</body>
</html>