This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Generating static HTML using Clojure macros | |
;; It is possible to write a DSL in Clojure that generates HTML markup without the need to write a separate parser and compiler (e.g. HAML). | |
;; Our aim here would be to write code that converts the following Clojure code into the HTML below it | |
;; (html | |
;; (head) | |
;; (body | |
;; (h1 "An example") |