Posted on: 2013-02-21 18:54:17.000
Today I relaunched my personal website at
http://www.jeremyreimer.com. It had previously been running on Dragonfly, a web development framework that inspired me to write Rockets.
Converting the code was really easy. All it took was the following:
1. Replace all instances of (print) with (display) and (println) with (displayln)
2. Remove Dragonfly-specific functions like (web-root) that are no longer necessary.
3. Make sure to start each page with:
#!/usr/bin/env newlisp
(load "newlisp-rockets.lisp") ; this is where the magic happens!
and end each page with
(display-footer "Jeremy Reimer")
(display-page)
And that's pretty much it! So if you want to convert any Dragonfly code to Rockets, that's how you do it.