GeePawHill,
@GeePawHill@mastodon.social avatar

Recall that the two primary entry points for the business logic are childrenFor(...) and bodyFor(...), both members of the primary business object, CurryTree itself.

childrenFor()'s job is to populate the tree that shows on the left-hand side of the screen. When any item there receives focus, bodyFor() then supplies the data for that particular item.

fun bodyFor(responder: Responder, handle: String, slug: String) { val bodyPath = Path.of(slug) if (bodies.exists(bodyPath)) { val body = bodies.read(bodyPath) responder.ok(body.blocks) } }

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • kavyap
  • thenastyranch
  • GTA5RPClips
  • tester
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • everett
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • cisconetworking
  • megavids
  • khanakhh
  • normalnudes
  • osvaldo12
  • cubers
  • tacticalgear
  • Durango
  • ethstaker
  • modclub
  • anitta
  • provamag3
  • Leos
  • JUstTest
  • lostlight
  • All magazines