fukamachi / caveman

Lightweight web application framework for Common Lisp.
http://8arrow.org/caveman/
776 stars 62 forks source link

(caveman:config) not working #15

Closed ghotiphud closed 11 years ago

ghotiphud commented 11 years ago

After setting up the skeleton project and running (start). (caveman:config) gives the following error:

There is no applicable method for the generic function
  #<STANDARD-GENERIC-FUNCTION CAVEMAN.PROJECT:CONFIG (1)>
when called with arguments
  (NIL).
   [Condition of type SIMPLE-ERROR]

I've traced this back to caveman.context:*project* being nil even after running start.

(caveman.project::config *project*) returns the correct plist.

ghotiphud commented 11 years ago

Config works from within a controller function, which is probably as intended, but the documentation is confusing. You can access to the configuration plist anywhere, by using caveman:config. Should be fixed because caveman.config is not accessible from the REPL.

Great job on the framework by the way. I'm just getting started with it, but the code is very clear and the documentation helps a lot.