type item = {string description, string url} database mydb { stringmap(item) /items } /mydb/items["google"] = {description: "search the interwebs with google!", url: "http://google.com"} /mydb/items["yahoo"] = {description: "search the interwebs with yahoo!", url: "http://yahoo.com"} function render_item(item) { <>
  • item

    {/mydb/items[item]/description}
  • } function render_index() { <> } Server.start(Server.http, {title: "test", page: render_index})