diff --git a/config/app/main/general/templates.json b/config/app/main/general/templates.json index adf029866..1880ba7fd 100644 --- a/config/app/main/general/templates.json +++ b/config/app/main/general/templates.json @@ -17,6 +17,14 @@ "baseUrl": { "@id": "urn:solid-server:default:variable:baseUrl" } } ] + }, + + { + "comment": "Renders the main template of all HTML pages. Other generated templates should be fed as input into this.", + "@id": "urn:solid-server:default:MainTemplateEngine", + "@type": "StaticTemplateEngine", + "templateEngine": { "@id": "urn:solid-server:default:TemplateEngine" }, + "template": "@css:templates/main.html.ejs" } ] } diff --git a/config/identity/handler/routing/views/html.json b/config/identity/handler/routing/views/html.json index ea559f527..f094eb517 100644 --- a/config/identity/handler/routing/views/html.json +++ b/config/identity/handler/routing/views/html.json @@ -15,12 +15,7 @@ "comment": "Will be called with specific templates to generate HTML snippets.", "@id": "urn:solid-server:default:TemplateEngine" }, - { - "comment": "Will embed the result of the first engine into the main HTML template.", - "@type": "StaticTemplateEngine", - "templateEngine": { "@id": "urn:solid-server:default:TemplateEngine" }, - "template": "@css:templates/main.html.ejs" - } + { "@id": "urn:solid-server:default:MainTemplateEngine" } ] }, "templates": [] diff --git a/config/util/representation-conversion/converters/dynamic-json-template.json b/config/util/representation-conversion/converters/dynamic-json-template.json index bce3384a5..2b0cce2ab 100644 --- a/config/util/representation-conversion/converters/dynamic-json-template.json +++ b/config/util/representation-conversion/converters/dynamic-json-template.json @@ -14,12 +14,7 @@ "comment": "Will be called with specific templates to generate HTML snippets.", "@id": "urn:solid-server:default:TemplateEngine" }, - { - "comment": "Will embed the result of the first engine into the main HTML template.", - "@type": "StaticTemplateEngine", - "templateEngine": { "@id": "urn:solid-server:default:TemplateEngine" }, - "template": "@css:templates/main.html.ejs" - } + { "@id": "urn:solid-server:default:MainTemplateEngine" } ] } } diff --git a/config/util/representation-conversion/converters/markdown.json b/config/util/representation-conversion/converters/markdown.json index ebd6080fe..5a7b95df3 100644 --- a/config/util/representation-conversion/converters/markdown.json +++ b/config/util/representation-conversion/converters/markdown.json @@ -5,11 +5,7 @@ "comment": "Renders Markdown snippets into the main page template.", "@id": "urn:solid-server:default:MarkdownToHtmlConverter", "@type": "MarkdownToHtmlConverter", - "templateEngine": { - "@type": "StaticTemplateEngine", - "templateEngine": { "@id": "urn:solid-server:default:TemplateEngine" }, - "template": "@css:templates/main.html.ejs" - } + "templateEngine": { "@id": "urn:solid-server:default:MainTemplateEngine" } }, { "comment": "Converts a container into a Markdown listing of its contents.",