Manipulating the DOM with Clojure using Klipse

The Klipse plugin is a client-side code evaluator. This means that inside a web page, you are not limited to manipulate data, but you can also manipulate the DOM. In this article we will show 4 approaches for manipulating the DOM with Clojure using Klipse: reagent the Klipse container the…

How to draw on a canvas with Klipse and core.async

The cool thing with KLIPSE is that it is 100% client-side. It means that you can interact freely with the page where the klipse snippets are hosted. As an example, you can draw on a canvas. All you need to do is to add in your html a <canvas&…

om.next: how to disable logging

Om.Next is a uniform yet extensible approach to building networked interactive applications. (Check this interactive tutorial to learn more about om.next.) (ns om-tutorial.part (:require goog.debug.formatter goog.debug.RelativeTimeProvider [goog.dom :as gdom] [om.next :as om :refer-macros [defui]] [om.dom :as dom])) By default, om.…

clojurescript canvas with monet

monet is a small ClojureScript library to make it easier (and performant) to work with canvas and visuals. (require '[monet.canvas :as canvas]) The usual workflow is calling init and getting the monet-canvas that returns, and then start adding entities with add-entity. An entity can be created with the…

A new way of blogging about HTML and CSS

Imagine you want to write a blog post that shows something really cool about html and css. How would you do that? You will probably embed a jsfiddle, jsbin or codepen in your page. The problem is that for each snippet you have to create a page on their server…