Reference · NPL
<npl-declaration>
NPL element
It renders the version line of an NPL document, such as [email protected], as a banner at the top. Extended documents are marked the same way.
Example
npl-declaration.html
source
1
<npl-declaration version="0.6">Every response states its assumptions before its answer.</npl-declaration>
2
<npl-declaration version="0.6" type="extension" extend-target="npl-core">This extension adds the session-ledger contract on top of npl-core.</npl-declaration>
render
Live render boots with JavaScript — the authored source is alongside.
variant: type="extension"
An extension spells the extend mark and names the vocabulary it extends — the banner mark switches to ⌜extend:NPL@…⌝ and the target renders beside it.
variant: type="extension"
npl-declaration-extension.html
source
1
<npl-declaration version="0.6" type="extension" extend-target="npl-core">This extension adds the session-ledger contract on top of npl-core.</npl-declaration>
render
Live render boots with JavaScript — the authored source is alongside.
Source: spec/schema/npl/npl-declaration.md