Opening < of html elements is randomly stripped
kylebragger opened this issue · 1 comments
kylebragger commented
The opening < of html elements is randomly stripped from template output.
layout.clj
(ns quality.views.layout
(:require [net.cgrand.enlive-html :as html]))
(html/deftemplate layout-html
"quality/views/layout.html"
[title body]
[:title]
(html/content (str title " - Quality"))
[:div#universe]
(html/content body))
layout.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Quality</title>
</head>
<body>
<div id="universe"></div>
</body>
</html>
One request, for instance, just output this:
<!DOCTYPE html>
html lang="en">
<head>
meta charset="utf-8" />
<title>Page title - Quality</title>
head>
<body>
<div id="universe">Hello</div>
</body>
</html>
I'm using enlive 1.1.4.
jcromartie commented
Are you looking at this in Chrome's "view source" view? I saw this kind of output too, but then I found that it was fine when I made the request with curl.