CLOJURE TEMPLATE
LANGUAGES
SEEKING THE HOLY GRAIL
WHAT WAS I LOOKING FOR?
easy to use
clear and consise
supports "inheritance"
not abandoned
THE CANDIDATES
hiccup
enlive
selmer
clj-jade
HICCUP
(syu-plcto.iw
n orapiainves
(rqie[icppg :ee [tl])
:eur hcu.ae rfr hm5])
(tl [dv{cas"otie"
hm5 :i :ls cnanr}
[h "icp...
HICCUP
it's clojure
functions + macros + paredit
not easy to share with designers
perfect for a one-man band
ENLIVE
(syu-plcto.iw
n orapiainves
(rqie[e.gadelv-tl:ee [etmlt])
:eur ntcrn.niehm rfr dfepae])
(etmlt m-ae"epae/aothm"
dfe...
ENLIVE
mostly clojure
deftemplate and defsnippet
should be easy to work with designers
makes you think
SELMER
{ etns"aothm"%
% xed lyu.tl }
{ boktte%
% lc il }
Sle
emr
{ edlc %
% nbok }
{ bokcnet%
% lc otn }
<1Sle<h>
h>emr/1
...
SELMER
extends and include
almost Django
actively developed
CLJ-JADE
etnslyu
xed aot
boktte
lc il
|cjjd
l-ae
bokcnet
lc otn
h cjjd
1 l-ae
p
|Ati wapraon jd4 t pooe
hn rpe rud aej o r...
CLJ-JADE
extends, include and mixins
really clean
indentation
clj-jade > jade4j > JEXL
*
QUANTITATIVE METRICS
hiccup
enlive
selmer
clj-jade

files
1
5
6
5

* - numbers can lie

lines
115
196
170
128
TRY IT YOURSELF
SOURCE CODE ON GITHUB
LIVE DEMO
THE END
PAVEL PROKOPENKO / GITHUB.COM/PROPAN
Upcoming SlideShare
Loading in...5
×

Clojure Template Languages

569

Published on

A talk given at ClojureFinland meetup.

GitHub: https://github.com/propan/crock-of-gold
Demo App: http://crock-of-gold.herokuapp.com

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
569
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Clojure Template Languages

  1. 1. CLOJURE TEMPLATE LANGUAGES SEEKING THE HOLY GRAIL
  2. 2. WHAT WAS I LOOKING FOR? easy to use clear and consise supports "inheritance" not abandoned
  3. 3. THE CANDIDATES hiccup enlive selmer clj-jade
  4. 4. HICCUP (syu-plcto.iw n orapiainves (rqie[icppg :ee [tl]) :eur hcu.ae rfr hm5]) (tl [dv{cas"otie" hm5 :i :ls cnanr} [h "icp] :1 Hcu" [p(t "icpi albayfrrpeetn HM " : sr Hcu s irr o ersnig TL "nCoue I ue vcost rpeet" i ljr. t ss etr o ersn "lmns admp t rpeeta " eeet, n as o ersn n "lmn' atiue.)] eeets trbts"])
  5. 5. HICCUP it's clojure functions + macros + paredit not easy to share with designers perfect for a one-man band
  6. 6. ENLIVE (syu-plcto.iw n orapiainves (rqie[e.gadelv-tl:ee [etmlt]) :eur ntcrn.niehm rfr dfepae]) (etmlt m-ae"epae/aothm" dfepae ypg tmltslyu.tl [ ] [h](/otn "nie) :1 hcnet Elv" [p (/otn (t "niei aslco-ae tmltn " :] hcnet sr Elv s eetrbsd epaig "irr frCoue") lbay o ljr.))
  7. 7. ENLIVE mostly clojure deftemplate and defsnippet should be easy to work with designers makes you think
  8. 8. SELMER { etns"aothm"% % xed lyu.tl } { boktte% % lc il } Sle emr { edlc % % nbok } { bokcnet% % lc otn } <1Sle<h> h>emr/1 <> fs,Dag isie tmlt sse frCoue<p pA at jno nprd epae ytm o ljr./> { edlc % % nbok }
  9. 9. SELMER extends and include almost Django actively developed
  10. 10. CLJ-JADE etnslyu xed aot boktte lc il |cjjd l-ae bokcnet lc otn h cjjd 1 l-ae p |Ati wapraon jd4 t pooe hn rpe rud aej o rmt |uewt teCouecmuiy s ih h ljr omnt.
  11. 11. CLJ-JADE extends, include and mixins really clean indentation clj-jade > jade4j > JEXL
  12. 12. * QUANTITATIVE METRICS hiccup enlive selmer clj-jade files 1 5 6 5 * - numbers can lie lines 115 196 170 128
  13. 13. TRY IT YOURSELF SOURCE CODE ON GITHUB LIVE DEMO
  14. 14. THE END PAVEL PROKOPENKO / GITHUB.COM/PROPAN
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×