S11001001 / weblocks-dev (http://common-lisp.net/project/cl-weblocks/)
fork of weblocks-oldstable
Weblocks is a continuations-based web framework written in Common Lisp. This is a development branch that may contain unstable code.
Clone this repository (size: 2.6 MB): HTTPS / SSH
$ hg clone http://bitbucket.org/S11001001/weblocks-dev/
| commit 1540: | 314f9a99c04c |
| parent 1539: | afe57e8d54af |
| branch: | default |
Use MAKE-WIDGET in default application code.
9 months ago
Changed (Δ298 bytes):
raw changeset »
src/default-application.lisp (20 lines added, 19 lines removed)
Up to file-list src/default-application.lisp:
53 |
53 |
|
54 |
54 |
(defun init-user-session (root) |
55 |
55 |
(setf (widget-children root) |
56 |
(list |
|
57 |
(f_% |
|
58 |
(with-html |
|
59 |
(:div :class "header" |
|
60 |
(with-extra-tags)) |
|
61 |
(:h1 "Welcome to " (:em "Weblocks!")) |
|
62 |
(:p "To learn more on how to get started |
|
63 |
writing " (:em "Weblocks") " applications, please see the " |
|
64 |
(:a :href "http://trac.common-lisp.net/cl-weblocks/wiki/UserManual" "user |
|
65 |
manual.") |
|
66 |
(:br) "For general information |
|
67 |
about " (:em "Weblocks") ", information on how to get |
|
68 |
support, find documentation, etc. please |
|
69 |
start " (:a :href "http://common-lisp.net/project/cl-weblocks" "here") ".") |
|
70 |
(:h2 "How did I get here?") |
|
71 |
(:p "If you expected to see your application here you probably didn't supply |
|
72 |
the PREFIX keyword argument to DEFWEBAPP (try " (:code "PREFIX \"/\"") ")."))) |
|
73 |
(make-instance 'webapp-control) |
|
74 |
|
|
56 |
(mapcar #'make-widget |
|
57 |
(list |
|
58 |
(f_% |
|
59 |
(with-html |
|
60 |
(:div :class "header" |
|
61 |
(with-extra-tags)) |
|
62 |
(:h1 "Welcome to " (:em "Weblocks!")) |
|
63 |
(:p "To learn more on how to get started |
|
64 |
writing " (:em "Weblocks") " applications, please see the " |
|
65 |
(:a :href "http://trac.common-lisp.net/cl-weblocks/wiki/UserManual" "user |
|
66 |
manual.") |
|
67 |
(:br) "For general information |
|
68 |
about " (:em "Weblocks") ", information on how to get |
|
69 |
support, find documentation, etc. please |
|
70 |
start " (:a :href "http://common-lisp.net/project/cl-weblocks" "here") ".") |
|
71 |
(:h2 "How did I get here?") |
|
72 |
(:p "If you expected to see your application here you probably didn't supply |
|
73 |
the PREFIX keyword argument to DEFWEBAPP (try " (:code "PREFIX \"/\"") ")."))) |
|
74 |
(make-instance 'webapp-control) |
|
75 |
(f_% (with-html (:h3 (:em "Happy hacking!")))))))) |
|
75 |
76 |
