some conveniences for ningle
- Common Lisp 100%
| conditions.lisp | init | |
| docs.lisp | docs no toc | |
| docs.org | docs | |
| http-codes.lisp | init | |
| http.lisp | change default redirect to 302 :found | |
| ingle.asd | more mime type and allowed ext funs | |
| jingle-licence.txt | add jingle licence file | |
| mime-types.lisp | more mime type and allowed ext funs | |
| package.lisp | Export the get-params function | |
| params.lisp | Added get-params to complement get-param | |
| readme.org | readme | |
| utils.lisp | write to file funs just take a full path, not file / dir | |
ingle
Some convenience functions for use with ningle, the Common Lisp web microframework.
There's the jingle library, but I find it adds too many bells and whistles and does annoying things like foist a particular JSON library onto the user. That said, it's well documented and great to learn with, so check it out if you are coming to grips with ningle.
ingle has no bells to jingle, it just keeps you a little bit warm. It started out with me both building a few basic functions, and gathering useful things that others had shared on the ningle repo and elsewhere online.
a redirect function
- from jingle
set/get flash messages
push-flash- push a str toningle:*session*for flashingget-flashesfor rendering- not from jingle
request parameters handling
get-paramconvenience function, andwith-paramsmacro for easy handling of ningle's request parameter alists- not from jingle
response macros
with-http-responseandwith-json-responsemacros- both set response status and content-type
- modified from jingle: don't assume we want to use a particular JSON library.
other code from jingle
- handle requests and responses (headers, statuses)
- handle http status codes
file wrangling
write-upload-to-file- save a file upload to diskwrite-to-file- write stream to filename in directorydelete-file-in-dir- delete a file
other utilities
file-size-readable- get a human readable file size for a filemod-time-readable- get a human readable last modified time for a fileformat-date(WIP) - get a human readable date string from an encoded time number (currently only DD-MM-YYYY)mime-type-verify- verify the MIME-type of a file, usingmagicffi.exts-for-mime-type- return a list of extensions for given MIME-type.
docs
for use with ningle
also of interest
Apart from Jingle, there's also niglex, which overlaps with ingle.
licence
jingle code has its own licence: jingle-licence.txt.
the rest is GPLv3.