func Render
Render renders the demo for gnoweb.
Example
1Render("") / Render("/") -> the full demo
Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.
Package globdemo is a gnoweb demo of the shell-pattern matcher provided by the [p/moul/x/daily/glob](/p/moul/x/daily/...
gno.land/r/moul/x/daily/globdemo/v0A gnoweb demo of p/moul/x/daily/glob: the
pattern grammar, the two matching modes, and the allowlist the library exists
for.
Render("") is the whole realm. It holds no state and takes no transaction, so
the page is a pure function of the fixed tables at the top of globdemo.gno
and every verdict in it is computed by the library rather than written down.
That is what lets an example test pin the output byte for byte: a change in the
matcher shows up as a diff in render_example_test.gno, not as prose that
quietly stopped being true.
Five sections, and the third is the point:
Match and MatchPath.
Two of the five rows disagree, which is the whole difference between them.strings.HasPrefix column beside the AnyPath one. The last two rows are
paths the prefix check lets through and the matcher does not.The wrong implementation (naivePrefix) is kept in the source on purpose, so
the page can show it being wrong instead of asserting that it is.
Part of moul/gno-contracts — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.
Dependency graph:

🧪 Highly experimental — potentially vibe-coded. Not audited; may break, change, or be removed at any time. Do not use with anything of value. Full disclaimer: DISCLAIMER.
Package globdemo is a gnoweb demo of the shell-pattern matcher provided by the p/moul/x/daily/glob(/p/moul/x/daily/glob/v0) library: the grammar, the two matching modes, and the allowlist the package exists for.
It contains no matching logic of its own. Stateless, so Render is deterministic: every verdict below is computed by the library from the fixed tables at the top of this file, never from chain state, which is what lets an example test pin the page.