Pic_large

Simo Råman

Hacker News client in clojure

Some time ago Hacker News released official API. What better reason to learn to write http client in clojure using HTTP Kit.

Top stories

Let's start with getting top stories.

(ns hn-cljient.core (:require [org.httpkit.client :as http])) (defn get-top-stories [] (let [{:keys [status headers body error] :as response} @(http/get  . . .

Read More

Posted in: clojure

November 09, 2014

hbs - Server side handlebars templating with clojure

Silvrback blog image
CC BY-SA 2.0 by tetue

Recently I worked on a project where clojure was used on the back end and javascript on the front end. Handlebars was used for front end templating. However, at some point a need emerged to do some server side rendering. Wanting to keep things DRY we looked for a solution that would allow us to have same templates both . . .

Read More

Posted in: clojure

October 08, 2014

Archive