Skip to content

shark8me/gorilla-indented-html-renderer

Repository files navigation

Plugin to display indented multiline HTML in gorilla worksheets.

Gorilla repl is an Clojure interactive environment that follows Literate programming principles similar to IPython.

While writing an Enlive tutorial , I did not find a way to display indented html. Hence I wrote a plugin for Gorilla-repl that can display indented html.

To use this plugin in your project, add this dependency in your project.clj

Clojars Project

In your worksheet, import thus:

(ns your-ns
  (:require [[html-indent.core :refer [view]])

To view html

(view "<h1><div>abc</div></h1>")

which is displayed in the gorilla worksheet as

<h1>
 <div>abc</div>
</h1>

License

Copyright © 2015 Kiran Karkera

Distributed under the Eclipse Public License version 1.0

About

A plugin for Gorilla-repl that can display indented html

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published