mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Use one identifier to reference main template engine
This commit is contained in:
parent
70556d2a8e
commit
92a0856da6
@ -17,6 +17,14 @@
|
|||||||
"baseUrl": { "@id": "urn:solid-server:default:variable:baseUrl" }
|
"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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -15,12 +15,7 @@
|
|||||||
"comment": "Will be called with specific templates to generate HTML snippets.",
|
"comment": "Will be called with specific templates to generate HTML snippets.",
|
||||||
"@id": "urn:solid-server:default:TemplateEngine"
|
"@id": "urn:solid-server:default:TemplateEngine"
|
||||||
},
|
},
|
||||||
{
|
{ "@id": "urn:solid-server:default:MainTemplateEngine" }
|
||||||
"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"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"templates": []
|
"templates": []
|
||||||
|
@ -14,12 +14,7 @@
|
|||||||
"comment": "Will be called with specific templates to generate HTML snippets.",
|
"comment": "Will be called with specific templates to generate HTML snippets.",
|
||||||
"@id": "urn:solid-server:default:TemplateEngine"
|
"@id": "urn:solid-server:default:TemplateEngine"
|
||||||
},
|
},
|
||||||
{
|
{ "@id": "urn:solid-server:default:MainTemplateEngine" }
|
||||||
"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"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,11 +5,7 @@
|
|||||||
"comment": "Renders Markdown snippets into the main page template.",
|
"comment": "Renders Markdown snippets into the main page template.",
|
||||||
"@id": "urn:solid-server:default:MarkdownToHtmlConverter",
|
"@id": "urn:solid-server:default:MarkdownToHtmlConverter",
|
||||||
"@type": "MarkdownToHtmlConverter",
|
"@type": "MarkdownToHtmlConverter",
|
||||||
"templateEngine": {
|
"templateEngine": { "@id": "urn:solid-server:default:MainTemplateEngine" }
|
||||||
"@type": "StaticTemplateEngine",
|
|
||||||
"templateEngine": { "@id": "urn:solid-server:default:TemplateEngine" },
|
|
||||||
"template": "@css:templates/main.html.ejs"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"comment": "Converts a container into a Markdown listing of its contents.",
|
"comment": "Converts a container into a Markdown listing of its contents.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user