Skip to content

Commit

Permalink
Remove extra white space
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatack committed May 25, 2015
1 parent b43569c commit af0eff0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions map_reduce_in_mongo.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
;; a game. I've removed the CLOS functions here in order to
;; keep this module as minimalistic as possible:
(defclass game ()
((name :reader name
((name :reader name
:initarg :name)
(votes :accessor votes
:initarg :votes
Expand Down Expand Up @@ -60,7 +60,7 @@
;; MongoDB supports a mapReduce database command.
;; All we have to do as a client is to supply the map- and
;; reduce-functions to mongo. Mongo will execute the algorithm
;; in its daemon process (mongod).
;; in its daemon process (mongod).
;;
;; To invoke mapReduce, we define client-side JavaScript functions:

Expand Down
18 changes: 9 additions & 9 deletions web_with_persistent_backend.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
;; access methods.

(defclass game ()
((name :reader name
((name :reader name
:initarg :name)
(votes :accessor votes
:initarg :votes ; when read from persistent storage
Expand Down Expand Up @@ -126,7 +126,7 @@
;; Here we grow a small domain-specific language for
;; creating dynamic web pages.

; Control the cl-who output format (default is XHTML, we
; Control the cl-who output format (default is XHTML, we
; want HTML5):
(setf (html-mode) :html5)

Expand All @@ -139,21 +139,21 @@
`(with-html-output-to-string
(*standard-output* nil :prologue t :indent t)
(:html :lang "en"
(:head
(:head
(:meta :charset "utf-8")
(:title ,title)
(:link :type "text/css"
(:link :type "text/css"
:rel "stylesheet"
:href "/retro.css")
,(when script
`(:script :type "text/javascript"
(str ,script))))
(:body
(:body
(:div :id "header" ; Retro games header
(:img :src "/logo.jpg"
:alt "Commodore 64"
(:img :src "/logo.jpg"
:alt "Commodore 64"
:class "logo")
(:span :class "strapline"
(:span :class "strapline"
"Vote on your favourite Retro Game"))
,@body))))

Expand All @@ -173,7 +173,7 @@
(:div :id "chart" ; Used for CSS styling of the links.
(:ol
(dolist (game (games))
(htm
(htm
(:li (:a :href (format nil "vote?name=~a" (url-encode ; avoid injection attacks
(name game))) "Vote!")
(fmt "~A with ~d votes" (escape-string (name game))
Expand Down
32 changes: 16 additions & 16 deletions web_with_proto_backend.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
;; access methods.

(defclass game ()
((name :reader name
((name :reader name
:initarg :name)
(votes :accessor votes
(votes :accessor votes
:initform 0)))

;; By default the printed representation of CLOS objects isn't
Expand Down Expand Up @@ -80,7 +80,7 @@
;; Here we grow a small domain-specific language for
;; creating dynamic web pages.

; Control the cl-who output format (default is XHTML, we
; Control the cl-who output format (default is XHTML, we
; want HTML5):
(setf (html-mode) :html5)

Expand All @@ -95,18 +95,18 @@
`(with-html-output-to-string
(*standard-output* nil :prologue t :indent t)
(:html :lang "en"
(:head
(:head
(:meta :charset "utf-8")
(:title ,title)
(:link :type "text/css"
(:link :type "text/css"
:rel "stylesheet"
:href "/retro.css"))
(:body
(:body
(:div :id "header" ; Retro games header
(:img :src "/logo.jpg"
:alt "Commodore 64"
(:img :src "/logo.jpg"
:alt "Commodore 64"
:class "logo")
(:span :class "strapline"
(:span :class "strapline"
"Vote on your favourite Retro Game"))
,@body))))

Expand All @@ -119,21 +119,21 @@
`(with-html-output-to-string
(*standard-output* nil :prologue t :indent t)
(:html :lang "en"
(:head
(:head
(:meta :charset "utf-8")
(:title ,title)
(:link :type "text/css"
(:link :type "text/css"
:rel "stylesheet"
:href "/retro.css")
,(when script
`(:script :type "text/javascript"
(str ,script))))
(:body
(:body
(:div :id "header" ; Retro games header
(:img :src "/logo.jpg"
:alt "Commodore 64"
(:img :src "/logo.jpg"
:alt "Commodore 64"
:class "logo")
(:span :class "strapline"
(:span :class "strapline"
"Vote on your favourite Retro Game"))
,@body))))

Expand All @@ -153,7 +153,7 @@
(:div :id "chart" ; Used for CSS styling of the links.
(:ol
(dolist (game (games))
(htm
(htm
(:li (:a :href (format nil "vote?name=~a" (url-encode ; avoid injection attacks
(name game))) "Vote!")
(fmt "~A with ~d votes" (escape-string (name game))
Expand Down

0 comments on commit af0eff0

Please sign in to comment.