Files
marqdo/tests/lib/plugin-demo.mq.md
T
cflmyandCursor ecc92f473a Unify frontmatter imports as import bind:target and drop > imports.
`import json:lib/json.mq.md` binds file libraries; `import fmt:time.format`
binds member short names (replaces `> use`). Legacy `> path.mq.md` / `> use`
now hard-error with a hint. Migrates repo docs, skills, ext, lib, public, examples,
man-test and tests; adds a negative gold and updates view/catalog rendering.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-13 10:03:21 +08:00

21 lines
356 B
Markdown

---
title: plugin demo ABI
description: Loads demo cdylib; path from MARQDO_TEST_PLUGIN (set by gold harness).
import plugin:lib/plugin.mq.md
import sys:lib/sys.mq.md
---
# main
*`p` = > sys.env_get name=MARQDO_TEST_PLUGIN *
> plugin.load path=`p`
*`sum` = > demo_add a=1 b=2 *
> print text=`sum`
*`echo` = > demo_echo text=ok *
> print text=`echo`