2 (in-package :lineal.webui
)
4 ;V Insert javascript tags.V
5 (defmacro js-tag
(s . body
)
7 (princ "<script type=\"text/javascript\">" ,s
)
9 (princ "</script>" ,s
)))
11 ;V Easily insert parenscript.V
12 (defmacro ps-tag
(s . body
)
13 `(js-tag ,s
(princ (ps ,@body
) ,s
)))
15 (defmacro jsfile
(s file
)
17 (princ "<script type=\"text/javascript\" src=\"/jsfiles/" ,s
)
19 (princ ".js\"></script>" ,s
)))
22 ;V Get a variable out of memory.V
23 (defun web-recall-vrbl ()
24 (recall-vrbl (parameter "name"))
30 (with-html-output-to-string
33 (:head
(:title
"Welcome to Lineal v0.1.5"))
39 document.option-form.action-menu.value
))
41 (:a
:href
"/input_matrix" "Create and edit")
42 " vectors and matrices" :br
43 (:a
:href
"/calcupage" "Calculate") " Things" :br
44 (unless (boundp 'lineal.devvars
::no-save-restore
)
46 (s) (:a
:href
"/save_restore" "Save/Restore") " Session" :br
))
48 (:a
:href
"/doc/index.html" "documentation")
49 " (you really should)" :br
50 (when (boundp 'lineal.devvars
::reload-page
)
52 (s) (:a
:href
"/reload" "Reload for changes") :br
))
53 :br
(:a
:href
"/COPYING"
54 "This software is subject to the MIT License")))))))