mirror of
https://github.com/feigeCode/navop.git
synced 2026-09-22 16:01:30 +00:00
25 lines
518 B
Plaintext
25 lines
518 B
Plaintext
package onet:extension;
|
|
|
|
interface html-preview {
|
|
record html-transform-input {
|
|
language: string,
|
|
html: string,
|
|
}
|
|
|
|
record html-asset {
|
|
path: string,
|
|
url: string,
|
|
}
|
|
|
|
record html-transform-output {
|
|
html: string,
|
|
assets: list<html-asset>,
|
|
}
|
|
}
|
|
|
|
world html-preview-transform {
|
|
use html-preview.{html-transform-input, html-transform-output};
|
|
|
|
export transform-html: func(input: html-transform-input) -> result<html-transform-output, string>;
|
|
}
|