You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718
  1. (module lament *
  2. (import scheme (chicken process-context))
  3. (import config build io paths render templates utils)
  4. (define (template content)
  5. `(html
  6. (head
  7. (title "My Website"))
  8. (body
  9. (div ,content))))
  10. (if (> (length (command-line-arguments)) 0)
  11. (let* ([config (build-config (command-line-arguments))]
  12. [posts (fetch-posts config)]
  13. [rendered-posts (render-posts posts template)])
  14. (build-posts config rendered-posts))
  15. (display "Error: path to source directory is required\n")))