refactor: Use one identifier to reference main template engine

This commit is contained in:
Joachim Van Herwegen 2023-10-12 13:58:53 +02:00
parent 70556d2a8e
commit 92a0856da6
4 changed files with 11 additions and 17 deletions

View File

@ -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"
}
]
}

View File

@ -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": []

View File

@ -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" }
]
}
}

View File

@ -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.",