API Overview - ()
Noir - a clojure web framework
noir.cookies
Detailed API documentation
Stateful access to cookie values
Public variables and functions:
get put!
noir.core
Detailed API documentation
Functions to work with partials and pages.
Public variables and functions:
defpage defpartial pre-route render
noir.exception
Detailed API documentation
Functions to handle exceptions within a Noir server gracefully.
Public variables and functions:
noir.options
Detailed API documentation
Allows access to Noir's server options
Public variables and functions:
dev-mode? get
noir.response
Detailed API documentation
Simple response helpers to change the content type, redirect, or return a canned response
Public variables and functions:
content-type empty json redirect status xml
noir.server
Detailed API documentation
A collection of functions to handle Noir's server and add middleware to the stack.
Public variables and functions:
add-middleware gen-handler load-views restart start stop
noir.session
Detailed API documentation
Stateful session handling functions. Uses a memory-store by default, but can use a custom store
by supplying a :session-store option to server/start.
Public variables and functions:
clear! flash-get flash-put! get put! remove!
noir.statuses
Detailed API documentation
If no pages are defined that match a request, a status page is used based on the
the HTTP status code of the response. This contains the function necessary to get
or set these status pages.
Public variables and functions:
get-page set-page!
noir.util.crypt
Detailed API documentation
Simple functions for hashing strings and comparing them. Typically used for storing passwords.
Public variables and functions:
compare encrypt
noir.util.middleware
Detailed API documentation
Helpful middleware functions
Public variables and functions:
wrap-utf-8
noir.util.s3
Detailed API documentation
Basic S3 utils
Public variables and functions:
list put! service with-s3
noir.util.test
Detailed API documentation
A set of utilities for testing a Noir project
Public variables and functions:
has-body has-content-type has-status send-request with-noir
noir.validation
Detailed API documentation
Functions for validating input and setting string errors on fields.
All fields are simply keys, meaning this can be a general error storage and
retrieval mechanism for the lifetime of a single request. Errors are not
persisted and are cleaned out at the end of the request.
Public variables and functions:
errors? get-errors has-value? has-values? is-email? max-length? min-length? not-nil? on-error rule set-error