7 (define r-s regexp-substitute/global)
9 ;;; to be executed in a directory with dirindex.html
10 ;;; will echo moin markup to stdout
13 (call-with-input-file "dirindex.html"
15 (read-string (file-size "dirindex.html") in))))
18 (rx (: "public_html/fotos/"
19 (submatch (: (= 4 numeric)
28 (submatch (: "cimg" (= 4 numeric) ".html"))
32 (submatch (: "cimg" (= 4 numeric) "--thumb.jpg"))
36 "[http://fotos.lefant.net/" curdir 1
37 " http://fotos.lefant.net/" curdir 2 "]\n")))
43 [[!tag CategoryCodeSnippets]]