Commit a961cbd8 authored by Vladimir Sedach's avatar Vladimir Sedach

Updated description of PS-HTML in the tutorial.

parent 0c542be0
...@@ -271,11 +271,12 @@ And finally a third link.<br/> ...@@ -271,11 +271,12 @@ And finally a third link.<br/>
;;; `SLIDESHOW' also generates a static array called `PHOTOS' which ;;; `SLIDESHOW' also generates a static array called `PHOTOS' which
;;; holds the links to the photos of the slideshow. This array is ;;; holds the links to the photos of the slideshow. This array is
;;; handled by the ParenScript code in "slideshow.js". Note how the ;;; handled by the ParenScript code in "slideshow.js". Note how the
;;; HTML code issued by the JavaScript is generated using the `HTML' ;;; HTML code issued by ParenScrip is generated using the `PS-HTML'
;;; construct. In fact, we have two different HTML generators in the ;;; construct. In fact, there are two different HTML generators in the
;;; example below, one is the standard Lisp HTML generator, and the ;;; example below, one is the AllegroServe HTML generator, and the
;;; other is the JavaScript HTML generator, which generates a ;;; other is the ParenScript standard library HTML generator, which
;;; JavaScript expression. ;;; produces a JavaScript expression which evaluates to an HTML
;;; string.
(defun slideshow (req ent) (defun slideshow (req ent)
(declare (ignore req ent)) (declare (ignore req ent))
...@@ -325,7 +326,7 @@ And finally a third link.<br/> ...@@ -325,7 +326,7 @@ And finally a third link.<br/>
"Next Slide")))))))))) "Next Slide"))))))))))
;;; `SLIDESHOW' generates the following HTML code (long lines have ;;; `SLIDESHOW' generates the following HTML code (long lines have
;;; been broken down): ;;; been broken):
<html><head><title>ParenScript slideshow</title> <html><head><title>ParenScript slideshow</title>
<script language="JavaScript" src="/slideshow.js"></script> <script language="JavaScript" src="/slideshow.js"></script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment