Oregami
Repositories/oxedyne/fe2o3

oxedyne/fe2o3/fe2o3_austenite/tests/fixtures/eval/plugin/echo.typ

458 bytes, 1 run

created by r1870400018:73477, which is this file's identity for as long as the history lasts, whatever it is later renamed to

download · who wrote it · its history

1// A plugin from a path and from bytes: every exported function is a member, its arguments are bytes and so
2// is its result (linguify, cetz, tiaoma).
3#let p = plugin("echo.wasm")
4#let q = plugin(read("echo.wasm", encoding: none))
5#metadata((str(p.echo(bytes("hello"))), str(q.two(bytes("ab"), bytes("cd"))), p.none().len(), type(p), type(p.echo), repr(p.echo))) <probe>
6#str(p.echo(bytes("set as text")))
7#let f = p.two.with(bytes("x"))
8#str(f(bytes("y")))