Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

Playground

gnomod.toml

module = "gno.land/r/g1gke74mu34h82s96tpwx6jqpf82aqgckq3r0xf8/home"
gno = "0.9"

[addpkg]
  creator = "g1gke74mu34h82s96tpwx6jqpf82aqgckq3r0xf8"
  height = 1213458
  max_deposit = "100000000ugnot"

home.gno

package home

// Render returns the profile page markdown served by gnoweb.
// gnoweb calls Render("") for /r/nym-transtangible420/home,
// which backs the profile at /u/nym-transtangible420.
func Render(path string) string {
	if path != "" {
		return "# nym-transtangible420\n\nNo such subpage: `" + path + "`\n"
	}
	return `# nym-transtangible420

> Building on Gno.land — deterministic, human-readable smart contracts.

## About

- **Name:** nym-transtangible420
- **Realm:** gno.land/r/nym-transtangible420/home
- **Status:** local dev — deploy to Onyx testnet pending (TODO #4)

## Links

- [gno.land profile](https://gno.land/u/nym-transtangible420)
- More links coming soon (placeholder).

---

*Rendered by a Gno realm. Deployed from the OpenClaw + Gnoland workspace.*
`
}

home_test.gno

package home

import "testing"

func TestRenderRoot(t *testing.T) {
	out := Render("")
	if out == "" {
		t.Fatal("Render(\"\") returned empty markdown")
	}
	t.Log("Render(\"\") output:\n" + out)
}

func TestRenderSubpage(t *testing.T) {
	if Render("somepath") == "" {
		t.Fatal("Render(subpath) returned empty markdown")
	}
}