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 "3e8.org hypertext service" "http://3e8.org")

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.