Beyond Compojure and Ring
Lots of libraries are available for doing tasks such as session management, input validation, and authentication. As always, you can pick and choose the components that are right for you.
The library we’ll focus on is lib-noir.[34] It’s a comprehensive suite of utilities for handling the most common operations in a web application. As we did with Hiccup, we’ll focus our attention on the most commonly used features and then segue into an overview of the API.
First, we’ll need to add lib-noir to our project.clj to use it. We’ll do this by adding [lib-noir "0.8.2"] to our dependencies vector.
If you have your project running as you follow along, which you should be doing, then you’ll need to restart it for the dependency ...
Get Web Development with Clojure now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.