chickadee » phricken » sgm->entry

sgm->entry exprprocedure

sgm->entry converts a Scheme gophermap entry (s-expression) to a Gopher entry record, using the sgm-rules alist to transform it. Here are a couple example SGM entries:

(i "Blog entry for " y "-" m "-" d)
(1 "Public directory" "/pub")
(h " hypertext service" "")

Entries are meant to look exactly like you'd expect a gophermap to look if implemented using s-expressions, instead of the more typical flat file. However, the exact behavior is dictated by the sgm-rules.