Re: Enlive: select a comment, drop all subsequent nodes?

2019-12-16 Thread Alan Thompson
You can be more precise if you use the `tupelo.forest` library for processing tree-like data structures (this will allow you to avoid the trailing `nil` values, for example). Please see the docs , and also the numerous examples

Re: Enlive: select a comment, drop all subsequent nodes?

2019-12-16 Thread Alan Thompson
Quick & dirty technique: (ns tst.demo.core (:use demo.core tupelo.core tupelo.test) (:require [clojure.java.io :as io] [clojure.walk :as walk] [tupelo.parse.tagsoup :as tagsoup] )) (dotest (let [txt(slurp (io/resource "test.html")) >> (println