-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.lisp
83 lines (63 loc) · 1.75 KB
/
test.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
(in-package :cl-wfx)
(declaim (optimize (debug 3)))
(defvar *hunch-sys* (make-instance 'hunch-system
:system-name "cl-wfx"
:port 8888
:system-folder "/Development/cl-wfx/"
:web-folder "Development/cl-wfx/web/"
;; :system-web-folder "Development/cl-wfx/web/"
;; :system-package *package*
:site-url "/cl-wfx/"
:ajax-url "/cl-wfx/ajax/"
;; :login-url "login"
;; :debug-errors-p t
:message-log-destination *standard-output*
:default-context "Data Specs"
))
(defmethod load-context-specs ((system hunch-system) &key &allow-other-keys)
)
(start-sys *hunch-sys*)
(with-system *hunch-sys*
;; (setup-context nil (get-context-spec "Data Specs") *hunch-sys*)
)
#|
;;(hunchentoot:start *hunch-sys*)
(with-system *hunch-sys*
(get-context-spec "Data Specs"))
(with-system *hunch-sys*
(get-system-collection "Data Spec"))
|#
(defun shitx (fuck)
(monkey-html-lisp:with-html
(:html
(:body
(:div (monkey-html-lisp:htm
(format nil "aaah - ~A" "shit")))
(:div :class "some-class"
(let ((x (random 10)))
(if (> x 5)
(monkey-html-lisp:htm (:p (:print "arst")))
(monkey-html-lisp:htm (:p (:print "arstarst")))
)))
(:div :class (if (> (random 10) 5)
(monkey-html-lisp:htm "someless5")
(monkey-html-lisp:htm "somegreat5")
)
(let ((x (random 10)))
(if (> x 5)
(monkey-html-lisp:htm (:p "arsggggggggt"))
(monkey-html-lisp:htm (:p "araaaaaaaaaaast"))
)))
(:div :class (if (> (random 10) 5)
"shit"
"fuck"
)
(:format "~A" "fuck")
(:div
(:if (> (random 10) 5)
"shit"
"fuck"
)
)
(:div (read-from-string fuck))
)))))