Enlive: select a comment, drop all subsequent nodes?

2019-12-13 Thread Jakub HolĂ˝
Hello! I'd really appreciate help with this problem: I have a blog post
containing `` 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.


[ANN] martian 0.1.11 - simplify your HTTP clients

2019-12-13 Thread Oliver Hine
Hi everyone,

I am pleased to announce the release of martian 0.1.11

Martian provides an abstraction allowing you to describe the HTTP endpoints 
that you call without methods, urls and query parameters leaking into your 
application code, allowing you to work with pure Clojure data. It builds on 
the flexible interceptor pattern familiar to users of pedestal and supports 
APIs described with Swagger. Describing HTTP calls as data allows you to 
easily stub remote services, generate responses and add aspects such as 
logging and metrics.

https://github.com/oliyh/martian

This release *adds support* for:

   - Free form objects (additionalProperties) #70 
    (thanks @omartell 
   )
   - Recursive schemas #71 
   - re-frame on-success and on-failure handlers can be vectors, allowing 
   closing over of local bindings #67 
   
   

Enjoy!

Cheers,
Oliy

-- 
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/819e31e2-7ea9-43ba-a855-be17e8d20a65%40googlegroups.com.