render_example_test.gno
0.63 Kb · 22 lines
1package home
2
3// ExampleRender pins the assembled page. It seeds state directly (rather than
4// through Set) so the example takes no `cur realm`, and it uses only
5// non-volatile placeholders so the golden output does not depend on the test
6// machine's block height or chain id.
7func ExampleRender() {
8 reset()
9 seed("layout", "# :owner:\n\n:bio:\n\n## Packages\n\n:packages:\n")
10 seed("bio", "Building on gno.")
11 seed("packages", "- p/moul/dynreplacer\n- r/moul/home")
12 print(Render(""))
13 // Output:
14 // # g1manfred47kzduec920z88wfr64ylksmdcedlf5
15 //
16 // Building on gno.
17 //
18 // ## Packages
19 //
20 // - p/moul/dynreplacer
21 // - r/moul/home
22}