<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 18 Feb 2012, at 13:31, Matti Oinas wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Biggest problem with enlive is that it is written with clojure. Not that clojure isn't great but it still isn't erlang.<br></span></blockquote></div><br><div>I agree that this is a great way to keep the HTML/CSS side pure, and still have lots of power to enhance it with dynamic content.</div><div><br></div><div>There is an (experimental?) xmerl_sax_parser-based module that is able to parse most existing HTML - certainly enough to handle the kind of templates one should be able to expect from a professional web designer*. With it, and perhaps something like xmerl_xs, it shouldn't be that hard to come up with an enliven-inspired lib in Erlang.</div><div><br></div><div>BR,</div><div>Ulf W</div><div><br></div><div><br></div><div>* I think this is one of the harder problems in the mix: accepting more or less malformed HTML. I know yaws has a HTML parser as well (yaws_html), but don't know how robust it is.</div></body></html>