fun log x = Web.log(Web.Notice, x) val _ = log "Entering guest.sml" val form = `
New comment
Name
Email

` fun layoutRow (f,acc) = case (f "comments", f "name", f "email") of (c, n, e) => (`
  • ^(c) -- ^(n)

    ` ^^ acc) val _ = log "Entering guest.sml 1" val rows = Db.fold layoutRow `` `select email,name,comments from guest order by name` val _ = log "Entering guest.sml 2" val _ = Page.return "Guest Book" (`

    ` ^^ form) handle Fail m => Page.return "Error on page" (Quot.fromString m)