mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
28 lines
1.0 KiB
JSON
28 lines
1.0 KiB
JSON
{
|
|
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^6.0.0/components/context.jsonld",
|
|
"@graph": [
|
|
{
|
|
"comment": "Uses the JSON data as parameters for a template.",
|
|
"@id": "urn:solid-server:default:DynamicJsonToTemplateConverter",
|
|
"@type": "DynamicJsonToTemplateConverter",
|
|
"templateEngine": {
|
|
"comment": "Renders the specific page and embeds it into the main HTML body.",
|
|
"@type": "ChainedTemplateEngine",
|
|
"renderedName": "htmlBody",
|
|
"engines": [
|
|
{
|
|
"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"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|