More helpers for clog in quicklisp

This commit is contained in:
David Botton 2021-01-29 00:41:32 -05:00
parent 2c3df8d408
commit 264cef0db2
8 changed files with 187 additions and 55 deletions

View file

@ -23,7 +23,7 @@
(set-on-click hello-element ; Now we set a function to handle clicks
(lambda (obj) ; In this case we use an anonymous function
(declare (ignore obj))
(setf (color hello-element) "green")))
(setf (color hello-element) :green)))
(run body))) ; Keep our thread alive until connection closes
; and prevent garbage collection of our CLOG-Objects

16
tutorial/13-tutorial.lisp Normal file
View file

@ -0,0 +1,16 @@
(defpackage #:clog-user
(:use #:cl #:clog)
(:export start-tutorial))
(in-package :clog-user)
(defun start-tutorial ()
"Start turtorial."
(format t "Tutorial 13 is a how to on building your own clog appliction.~%~
Copy the directory - ~A~%~
to your ~~/common-lisp directory or other asdf / quicklisp~%~
directory. Then follow the directions in the tuturial 13 ~%~
directory."
(merge-pathnames "./tutorial/tutorial13"
(asdf:system-source-directory :clog))))

View file

@ -1,4 +1,4 @@
To run a tutorial, start emacs/slime or your CL Lisp in the common-lisp/clog directory:
To run a tutorial load clog:
```
CL-USER> (ql:quickload :clog)
@ -10,14 +10,14 @@ To load "clog":
(:CLOG)
```
Load the demo:
Load the tutorial:
```
CL-USER> (load "/Users/dbotton/common-lisp/clog/tutorial/01-tutorial.lisp")
#P"/Users/dbotton/common-lisp/clog/tutorial/01-tutorial.lisp"
```
Start the demo:
Start the tutorial:
```
CL-USER> (clog-user:start-tutorial)