skypher/weblocks

Need to load javascript backend: the simple blog example doesn't work

wislin opened this issue · 1 comments

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.

Now, I can run weblocks-demo. Need some code change.

  1. weblocks-demo.lisp
  (defwebapp weblocks-demo :prefix "/" 
                        :js-backend :prototype // add this 
                        :autostart  nil
                        ......
  1. 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)