Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support content negotiation for IDP requests
- Loading branch information
Showing
17 changed files
with
383 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
config/util/representation-conversion/converters/dynamic-json-template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^1.0.0/components/context.jsonld", | ||
"@graph": [ | ||
{ | ||
"comment": "Uses the JSON data as parameters for a template.", | ||
"@id": "urn:solid-server:default:DynamicJsonToTemplateConverter", | ||
"@type": "DynamicJsonToTemplateConverter", | ||
"extension": ".ejs", | ||
"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.", | ||
"@type": "EjsTemplateEngine" | ||
}, | ||
{ | ||
"comment": "Will embed the result of the first engine into the main HTML template.", | ||
"@type": "EjsTemplateEngine", | ||
"template": "@css:templates/main.html.ejs" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.