retrogradeorbit / bootleg

Simple template processing command line tool to help build static websites
Eclipse Public License 2.0
254 stars 12 forks source link

[POD] Parsing as hiccup or hickory fails #78

Open i-blis opened 2 months ago

i-blis commented 2 months ago

I have had no success whatsoever in using bootleg as a pod with babashka (v1.3.190).

(require '[babashka.pods :as pods])
(pods/load-pod 'retrogradeorbit/bootleg "0.1.9")
(require '[pod.retrogradeorbit.bootleg.utils :as bootleg])

(-> "https://example.com" slurp (bootleg/html->hickory))
; => "\n"

Parsing fails with all descent HTML file I tried. Same with html->hiccup (and for sure convert-to).

Where as the following code run with JVM Clojure, works without a hitch.

(require '[hickory.core :as h])
(-> "https://example.com" slurp h/parse h/as-hickory)
;=> {:type :document, :content [{:type :document-type, :attrs {:name "html", ...

Any hint as to what's going on?