Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Clojure Web Development Essentials
  • Table Of Contents Toc
  • Feedback & Rating feedback
Clojure Web Development Essentials

Clojure Web Development Essentials

By : Baldwin
4.5 (6)
close
close
Clojure Web Development Essentials

Clojure Web Development Essentials

4.5 (6)
By: Baldwin

Overview of this book

This book is for anyone who's worked with Clojure and wants to use it to start developing applications for the Web. Experience or familiarity with basic Clojure syntax is a must, and exposure to Leiningen (or other similar build tools such as Maven) would be helpful.
Table of Contents (14 chapters)
close
close
13
Index

An exercise!


So far, this chapter has been me giving you step-by-step lists of things to do. So if you're getting bored, I don't blame you. As such, I'm going to assign you some homework. You may have noticed that our recently added albums have a hyperlink for the band name.

Your task, if you choose to accept it (you should, it's super rad), is to create a second page. This page will be an artist's discography page. It will show all the albums by the artist that the user clicked. To accomplish this task you must perform the following steps:

  1. Create the route to serve the artist page.

  2. Create the YeSQL script to select all the albums for a given artist by name.

  3. Create the template to render the list of albums for a given artist.

For example, clicking the Fort Knox Harrington link should produce the following:

Tip

In order to complete this task, you must use Compojure's parameter destructuring – See Chapter 4, URL Routing and Template Rendering, specifically the section on – surprise! – Parameter destructuring...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Clojure Web Development Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon