Skip to content

Commit

Permalink
reload tested
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinIAC committed Jul 9, 2015
1 parent ac4bf15 commit 2344a95
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,20 @@ On the [Enlive Google Group](http://groups.google.com/group/enlive-clj)

## Artifact

All artifacts are published to [clojars](https://clojars.org/enlive). Latest version is `1.1.5`:
All artifacts are published to [clojars](https://clojars.org/enlive). Latest version is `1.1.6`:

```
[enlive "1.1.5"]
[enlive "1.1.6"]
```

## What's new in Enlive?

(most recent first)

1.1.6:
- ADD: exception message when html-resource not found.
- FIX: auto-reload on windows (also works with chestnut).

### Auto-reloading (1.1.2)

```clj
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject enlive "1.1.5"
(defproject enlive "1.1.6"
:min-lein-version "2.0.0"
:description "a HTML selector-based (à la CSS) templating and transformation system for Clojure"
:url "http://github.com/cgrand/enlive/"
Expand Down
2 changes: 2 additions & 0 deletions src/net/cgrand/tagsoup.clj
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
(defn parser
"Loads and parse an HTML resource and closes the stream."
[stream]
(when-not stream
(throw (NullPointerException. "HTML resource not found.")))
(filter map?
(with-open [^java.io.Closeable stream stream]
(xml/parse (org.xml.sax.InputSource. stream) startparse-tagsoup))))
Expand Down
2 changes: 1 addition & 1 deletion test/net/cgrand/enlive_html/test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
(:use net.cgrand.enlive-html)
(:require [net.cgrand.xml :as xml])
(:require [clojure.zip :as z])
(:use [clojure.test :only [deftest is are]]))
(:use [clojure.test :only [deftest is are run-all-tests]]))

;; test utilities
(defn- normalize [x]
Expand Down

0 comments on commit 2344a95

Please sign in to comment.