Manifest format
The published JSON a page fetches, field by field.
The published manifest is the only thing a visitor fetches. It is public, it is cacheable, and it is small.
{
"version": 12,
"elements": {
"[data-webnak=\"hero-title\"]": {
"text": "Now shipping worldwide"
},
"[data-webnak=\"hero-image\"]": {
"attrs": { "src": "/hero-v2.jpg", "alt": "Our warehouse" }
}
}
}| Field | Type | Meaning |
|---|---|---|
| version | number | Increments on every publish for this page. |
| elements | object | Selector to override. The key is the selector Webnak emitted. |
| elements[].text | string | Replaces the element's text content. |
| elements[].html | string | Replaces its inner HTML. Sanitised on both write and read. Wins over text. |
| elements[].attrs | object | Attributes to set, such as src, href or alt. |
| elements[].style | object | Inline styles to set. |
| elements[].media | object | Styles per breakpoint, applied widest first. |