Announcement: pretzel – clojure predicate functions
Tuesday, April 5th, 2011I’m working on pretzel right now. It’s a basic library that can be used to combine predicates and also holds a bunch of tests on string content.
I’m working on pretzel right now. It’s a basic library that can be used to combine predicates and also holds a bunch of tests on string content.
Some people indicated they wanted some example code for my clj-decline
(validation) and flutter (form generation) libraries. So today I wrote
a simple demo application that uses both.
I’ve been working on flutter, a library for saner form generation today. First (pretty basic) release was done on clojars. Still working on many details, including more-or-less full-coverage tests.
Get the code on github.
Also see the announcement on the clojure group.
Just released a minimal library to generate persistent cookies for ring.middleware.cookies.
I’ve forked off ring.middleware.multipart-params into a new library called ring.middleware.upload-progress
It’s a bit rough-and-ready for now, and it uses the session to store the shared state about current uploads, which is probably not the best way to go about it – I’m thinking about introducing a new lower-level mechanism for low-memory shared state based on clojure’s STM tools, since this kind of thing is interesting for more than just uploads – but it does work as long as you’re not doing anything too fancy (if you’re worried, you can use a separate session store just for this info).
For the interested: the code is at github.
I’ve got some working “upload progress bar” javascript and routing code too, but it’s not in this project, so for now, you’ll have to roll your own.
I’ll get a clojars release done as soon as I’m satisfied this stuff is usable. Probably in the next few days.