mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
31 lines
1.2 KiB
JSON
31 lines
1.2 KiB
JSON
{
|
|
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^7.0.0/components/context.jsonld",
|
|
"@graph": [
|
|
{
|
|
"comment": "Template engine that finds the appropriate template engine to use based on the template extension.",
|
|
"@id": "urn:solid-server:default:TemplateEngine",
|
|
"@type": "WaterfallHandler",
|
|
"handlers": [
|
|
{
|
|
"comment": "Template engine that supports EJS templates.",
|
|
"@type": "EjsTemplateEngine",
|
|
"baseUrl": { "@id": "urn:solid-server:default:variable:baseUrl" }
|
|
},
|
|
{
|
|
"comment": "Template engine that supports Handlebars (HBS) templates",
|
|
"@type": "HandlebarsTemplateEngine",
|
|
"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"
|
|
}
|
|
]
|
|
}
|