News for hackers. Stuff that matters.
Re:Clojure-powered Startups by pivo on Friday June 22, 2012 @02:04PM (#4147904)
I'm curious about how startups using Clojure are generating their HTML. Are you guys doing it in Clojure code (e.g. Noir) or are you using some sort of HTML templating support (e.g. JSP)?

While I really like the idea of writing HTML in Clojure, I like even more the idea of being able to have a HTML/CSS/etc expert, who doesn't necessarily know Clojure, be able to maintain the HTML instead of me.

Has anyone found what they think is a good solution?

Re:Clojure-powered Startups by spacemanaki on Friday June 22, 2012 @02:26PM (#4148025)
> I like even more the idea of being able to have a HTML/CSS/etc expert, who doesn't necessarily know Clojure, be able to maintain the HTML instead of me.

Check out Enlive, it solves exactly this problem. HTML/CSS is separate from Clojure code and you fill out templates and stuff via CSS style selectors. It's sweet.

https://github.com/swannodette/enlive-tutorial

https://github.com/cgrand/enlive

Btw I think you can use Enlive with Noir, even though some of the examples from Noir use Hiccup, it's not a requirement.

Re:Clojure-powered Startups by nmcfarl on Friday June 22, 2012 @06:39PM (#4149242)
That tutorial is truly excellent - I’ve been looking for something to replace Hiccup, and this looks to be it!
Re:Clojure-powered Startups by pbiggar on Friday June 22, 2012 @03:22PM (#4148309)
At Circle [1] are doing practically all of our HTML on the client side. Our server exposes an API using Noir, and we had to build a lot of our own stuff on top of that, like authentication. I added coffeescript and hamlcoffee support to dieter [2]. HTML emails are templated in mustache.

[1] https://circleci.com [2] https://github.com/edgecase/dieter

Re:Clojure-powered Startups by Rayne on Friday June 22, 2012 @04:24PM (#4148563)
I'm a fan of mustache. There is an excellent implementation for Clojure: https://github.com/davidsantiago/stencil
Re:Clojure-powered Startups by tensor on Friday June 22, 2012 @02:27PM (#4148032)
Re:Clojure-powered Startups by elrodeo on Sunday June 24, 2012 @03:23AM (#4152820)
I'm using hiccup for HTML.

Here I gave an overview of my experiment in building a web app entirely in Clojure: http://notehub.org/2012/6/16/how-notehub-is-built