%
// hide private properties from config
const to_hide = ["host", "port"];
function replacer(key,value) {
if (to_hide.includes(key)) return undefined;
else return value;
}
function to_pretty(obj) {
return JSON.stringify(obj, replacer, 2).replace(/[\[\]{}"]/g, "").replace(/,/g, "");
}
%>
txt. configuration
Configuration
version: <%= packageJSON.version %><%= to_pretty(config) %>
Available engines
<%
for (const engine of engines) {
%>- <%= engine.name %>: <%= engine.description %>
<%
}
%>
Available routes
<%
for (const route of dynConfig.routes) {
%>
<%= route %><%
}
%>