Web Development With Clojure: Build Bulletproof Web Apps With Less Code by Dmitri Sotnikov
Author:Dmitri Sotnikov
Language: eng
Format: mobi
Tags: Web, Pragmatic Bookshelf, Programming Languages, Lisp, Computers, Programming, General, Web Programming
ISBN: 9781937785642
Publisher: Pragmatic Bookshelf
Published: 2014-01-09T05:00:00+00:00
(ns picture-gallery.handler
...
(:require ... [noir.session :as session]))
picture-gallery-c/src/picture_gallery/handler.clj
(defn user-page [_]
(session/get :user))
The underscore (_) in the user-page’s arguments vector simply indicates that the argument will be ignored.
We now need to update our handler to set the access rules using the :access-rules key. The app-handler will use the noir.util.middleware/wrap-access-rules middleware to apply the rules to restricted pages. In our case, we have a single rule: the user-page function.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
| Ajax | Assembly Language Programming |
| Borland Delphi | C & C++ |
| C# | CSS |
| Compiler Design | Compilers |
| DHTML | Debugging |
| Delphi | Fortran |
| Java | Lisp |
| Perl | Prolog |
| Python | RPG |
| Ruby | Swift |
| Visual Basic | XHTML |
| XML | XSL |
The Mikado Method by Ola Ellnestam Daniel Brolund(20600)
Hello! Python by Anthony Briggs(19897)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(18203)
Dependency Injection in .NET by Mark Seemann(18105)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(17574)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(17419)
Kotlin in Action by Dmitry Jemerov(17179)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(16928)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(16233)
Grails in Action by Glen Smith Peter Ledbrook(15388)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(10391)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(8052)
Microservices with Go by Alexander Shuiskov(7816)
Practical Design Patterns for Java Developers by Miroslav Wengner(7718)
Test Automation Engineering Handbook by Manikandan Sambamurthy(7667)
Angular Projects - Third Edition by Aristeidis Bampakos(7159)
The Art of Crafting User Stories by The Art of Crafting User Stories(6608)
NetSuite for Consultants - Second Edition by Peter Ries(6531)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(6304)