Index of Public Functions and Variables - ()
This page has an alphabetical index of all the documented functions and variables
in
Noir.
A
add-middleware function noir.server Add a middleware function to the noir server. Func...
C
clear! function noir.session Remove all data from the session and start over cl...
compare function noir.util.crypt Compare a raw string with an already encrypted str...
D
defpage macro noir.core Adds a route to the server whose content is the th...
defpartial macro noir.core Create a function that returns html using hiccup. ...
dev-mode? function noir.options Returns if the server is currently in development ...
E
empty function noir.response Return a successful, but completely empty response.
encrypt function noir.util.crypt Encrypt the given string with a generated or suppl...
errors? function noir.validation For all fields given return true if any field cont...
G
get function noir.cookies Get the value of a cookie from the request. k can ...
get function noir.options Get an option from the noir options map.
get function noir.session Get the key's value from the session, returns nil ...
get-errors function noir.validation Get the errors for the given field. This will retu...
get-page function noir.statuses Gets the content to display for the given status c...
H
has-value? function noir.validation Returns true if v is truthy and not an empty strin...
has-values? function noir.validation Returns true if all members of the collection has-...
I
is-email? function noir.validation Returns true if v is an email address.
J
json function noir.response Wraps the response in the json content type and st...
L
list function noir.util.s3 List all files in the bucket with the given prefix.
load-views function noir.server Require all the namespaces in the given dir so tha...
M
max-length? function noir.validation Returns true if v is less than or equal to the giv...
min-length? function noir.validation Returns true if v is greater than or equal to the ...
N
not-nil? function noir.validation Returns true if v is not nil.
O
on-error function noir.validation If the given field has an error, execute func and ...
P
pre-route macro noir.core Adds a route to the beginning of the route table a...
put! function noir.cookies Add a new cookie whose name is k and has the value...
put! function noir.session Associates the key with the given value in the ses...
put! function noir.util.s3 Put the given file on S3 where bucket is the strin...
R
redirect function noir.response A header redirect to a different url.
remove! function noir.session Remove a key from the session.
render function noir.core Renders the content for a route by calling the pag...
rule function noir.validation If the passed? condition is not met, add the error...
S
service function noir.util.s3 Create an S3 service object.
set-error function noir.validation Explicitly set an error for the given field. This ...
set-page! function noir.statuses Sets the content to be displayed if there is a res...
start function noir.server Start the noir server bound to the specified port ...
status function noir.response Wraps the content in the given status code.
W
with-s3 macro noir.util.s3 Given a server-spec which contains {:secret-key :a...
X
xml function noir.response Wraps the response with the content type for xml a...