Permalink
Browse files

force utf-8

  • Loading branch information...
1 parent b11b6cd commit 73b089ce7a970afa7ec4dc0d0695e06d769aeed2 @mmikulicic committed Nov 14, 2010
Showing with 5 additions and 4 deletions.
  1. +3 −3 project.clj
  2. +2 −1 src/haml_macro.clj
View
@@ -1,8 +1,8 @@
-(defproject haml-macro "1.0.1-SNAPSHOT"
+(defproject haml-macro "1.0.3-SNAPSHOT"
:description "macro which takes haml and generate hiccup compatible html rendering"
:url "http://github.com/mmikulicic/haml-macro"
- :dependencies [[org.clojure/clojure "1.1.0"]
- [org.clojure/clojure-contrib "1.1.0"]
+ :dependencies [[org.clojure/clojure "1.2.0"]
+ [org.clojure/clojure-contrib "1.2.0"]
[clarsec "0.0.1-SNAPSHOT"]
[hiccup "0.2.1"]
]
View
@@ -3,6 +3,7 @@
(:use hiccup.core))
(defmacro haml [file]
- (apply list 'hiccup.core/html (haml-macro.core/haml-file-with-layout file)))
+ {:headers {"Content-Type" "text/html; charset=UTF-8"}
+ :body (apply list 'hiccup.core/html (haml-macro.core/haml-file-with-layout file))})
(defn set-templates-dir [dir] (reset! *templates-dir* dir))

0 comments on commit 73b089c

Please sign in to comment.