Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

build.scm 460B

123456789101112131415
  1. (module build (build-posts build-post)
  2. (import scheme (chicken io))
  3. (import config paths)
  4. (define (build-post config post)
  5. (let* ([path (car post)]
  6. [content (cdr post)]
  7. [absolute-path (absolute-build-path config path)])
  8. (call-with-output-file
  9. absolute-path
  10. (lambda (port) (write-string content #f port)))))
  11. (define (build-posts config posts)
  12. (map (lambda (post) (build-post config post)) posts)))