html, css, javascript file writing utility for common lisp
- best used with soc
- clone this repo and soc repo into a location within ASDF source registry (eg.
~/.roswell/local-projects/
)- if you have no idea what the ASDF source registry is, check this out
- now that both projects are found by quicklisp you are ready to start writing web apps in lisp!!
- lww recursively searches within your projects root directory for files named like:
filename_{html,css,js}.lisp
and writes out the associated web file- examples:
index_html.lisp
->index.html
- examples:
- more specifically, it sets the stream
soc:*soc*
to the matching web filename, then loads the lisp file - its up to you to write code that makes use of this filestream
- soc example:
(soc:soc <body of file>)
- parenscript example:
(ps:ps-to-stream soc:*soc* <body of file>)
(lww:write-app "/path/to/project")
write all web files whose lisp files have changed (more recent timestamps)(lww:write-app "/path/to/project" 't)
force lww to overwrite all matching lisp -> web file pairs
- soc example: