render_example_test.gno
0.90 Kb · 28 lines
1package blog
2
3// ExampleRender pins the index. It seeds state directly (rather than through
4// Set) so the example takes no `cur realm`, and it resets first because an
5// example runs after every Test in the package and would otherwise render what
6// they left behind.
7func ExampleRender() {
8 reset()
9 seed("mygnoscan", "Sharing mygnoscan", "2026-09-23", "mygnoscan,tooling", "An unfinished BI tool for gno.land.")
10 seed("hello", "Hello", "2026-09-01", "meta", "Starting a blog on chain.")
11 print(Render(""))
12 // Output:
13 // # moul's blog
14 //
15 // Notes on gno.land, from the person building on it.
16 //
17 // ## [Sharing mygnoscan](/r/moul/blog:mygnoscan)
18 //
19 // 2026-09-23 · [#mygnoscan](/r/moul/blog:t/mygnoscan) · [#tooling](/r/moul/blog:t/tooling)
20 //
21 // An unfinished BI tool for gno\.land\.
22 //
23 // ## [Hello](/r/moul/blog:hello)
24 //
25 // 2026-09-01 · [#meta](/r/moul/blog:t/meta)
26 //
27 // Starting a blog on chain\.
28}