Need to load javascript backend: the simple blog example doesn't work
wislin opened this issue · 1 comments
wislin commented
I tried the demo:
CL-USER> (ql:quickload "weblocks-demo")
To load "weblocks-demo":
Load 1 ASDF system:
weblocks-demo
; Loading "weblocks-demo"
CL-USER>(weblocks-demo:start-weblocks-demo)
but I get this error message:
> Please load javascript backend for framework (default is :prototype from https://github.com
> /html/weblocks-prototype-js) and pass :js-backend value (:js-backend :prototype for example)
> into your defwebapp
try:
(weblocks-demo:start-weblocks-demo :js-backend :prototype)
and get the same error.
What I have to do to resolve this problem.
wislin commented
Now, I can run weblocks-demo. Need some code change.
- weblocks-demo.lisp
(defwebapp weblocks-demo :prefix "/"
:js-backend :prototype // add this
:autostart nil
......
- init-session.lisp
Delete "defwebapp" expression
#| (defwebapp weblocks-demo
....)|#
Now, we can use follow code to start demo.
(ql:quickload "weblocks-demo")
(weblocks-demo:start-weblocks-demo)