Centralized contexts
The users should be able to define a context once that they'll reuse throughout their html application:
<script id="alpha" type="application/ld+json">
{
"@vocab": "https://alpha.happy-dev.fr/",
"project": "https://alpha.happy-dev.fr/projects/"
}
</script>
They can then use the context by passing it to their components:
<sib-display extra-context="alpha" data-src="project:4/"></sib-display>
They can also define a context as the default one, that will be used on any components that has no extra-context
attribute, with the data-default-context
attribute:
<script data-default-context type="application/ld+json">
{
"@vocab": "https://alpha.happy-dev.fr/",
"project": "https://alpha.happy-dev.fr/projects/"
}
</script>