We borrow ideas from the Seran Outpost and see how they might translate to deno scripts deployed to the edge.
We will deploy pages as code. This could be most useful if we are wrapping a computation in page json. It could also be useful for reference pages used in functional testing.
We create pages as lists of items. Deploy the lists and expansion functions to the edge. Then retrieve expanded page json as we would from any other site. json
page("Wind River", [ "A lat/lon confluence near Mt. Saint Helens.", item('map', {text:'46,-122', zoom:10}), "See Aerial Map" ])