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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access