소스 검색

Fix embarrassing escaping in write-file.

Brit Butler 11 년 전
부모
커밋
2011da83ad
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      src/coleslaw.lisp
  2. 1 1
      src/config.lisp

+ 2 - 2
src/coleslaw.lisp

@@ -1,6 +1,6 @@
1 1
 (in-package :coleslaw)
2 2
 
3
-(defun main (&optional config-key)
3
+(defun main (&optional (config-key ""))
4 4
   "Load the user's config file, then compile and deploy the site."
5 5
   (load-config config-key)
6 6
   (load-content)
@@ -93,4 +93,4 @@ Additional args to render CONTENT can be passed via RENDER-ARGS."
93 93
                    :if-exists :supersede
94 94
                    :if-does-not-exist :create
95 95
                    :external-format '(:utf-8))
96
-    (write page :stream out)))
96
+    (write page :stream out :escape nil)))

+ 1 - 1
src/config.lisp

@@ -48,7 +48,7 @@ doesn't exist, use the .coleslawrc in the home directory."
48 48
         custom-path
49 49
         (rel-path (user-homedir-pathname) ".coleslawrc"))))
50 50
 
51
-(defun load-config (&optional (config-key ""))
51
+(defun load-config (&optional config-key)
52 52
   "Load the coleslaw configuration from DIR/.coleslawrc, using CONFIG-KEY
53 53
 if necessary. DIR is ~ by default."
54 54
   (with-open-file (in (discover-config-path config-key) :external-format '(:utf-8))