More robust logic to pass procedures to the index.html template

This commit is contained in:
Fabio Manganiello 2020-08-31 21:32:00 +02:00
parent edd2235cbc
commit 737c135996

View file

@ -17,10 +17,9 @@
has_ssl: {{ 'true' if has_ssl else 'false' }},
templates: JSON.parse('{{ utils.to_json(templates)|safe }}'),
scripts: JSON.parse('{{ utils.to_json(scripts)|safe }}'),
procedures: JSON.parse('{{ procedures.replace("\'", "\\\'")|safe }}'),
procedures: JSON.parse({{ utils.to_json(procedures)|safe }}),
};
var __plugins__ = JSON.parse('{{ utils.to_json(plugins)|safe }}');
var __backends__ = JSON.parse('{{ utils.to_json(backends)|safe }}');