#! /usr/bin/guile \ -e main -s !# (use-modules (sxml simple)) (define (make-gophermap articles) (call-with-output-file "phlog/gophermap" (lambda (fp) (for-each (lambda (article) (if (list? article) (display article))) (cdr (cadr articles)))))) (define (make-blogs articles) '()) (define (generate-phlog) (call-with-input-file "articles.xml" (lambda (fp) (let ((articles (xml->sxml fp))) (make-gophermap articles) (make-blogs articles))))) (define (main args) (generate-phlog))