Hello! I'd really appreciate help with this problem: I have a blog post
containing `<!--more-->` to mark the (prior) part of the text that should
be used in previews etc. Given an Enlive DOM tree, how do I get just the
preview?

I guess I want to
1. Create a selector for the comment node (`{:type :comment, :text
"more"})` `(pred #(= % {:type :comment..})) ` seems useful to start turning
this into a selector but isn't enough. So what else?
2. How to drop all nodes after the comment? Perhaps transform with this
selector + somehow use `rights` to select all nodes after it and somehow
remove them?

Thanks a lot for any tips! I'm new to Enlive and it is daunting.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/CA%2BffqM0r6k%2Bb9rn3ZLdbx1sNAzYu5DrXVNOUTAJpfgvmKMQSkA%40mail.gmail.com.

Reply via email to