Templates
How demo templates are stored, edited, and added without touching application code.
Templates are the “base profile” used by the Theme Lab.
They exist for one reason:
Give your Custom CSS and Custom HTML a realistic target to style immediately, even when MyOshi profiles cannot be fetched.
Template storage design
Templates are stored as:
- a single registry file:
ui/lab/data/templates.json
This makes templates easy to update without editing JavaScript. However these are server-side and not available to modify.
templates.json format
Example:
{
"templates": [
{
"id": "demo-default",
"name": "Demo: Default-ish MyOshi Shell",
"css": "",
"body": ""
}
]
}