fukamachi / caveman

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

Documentation issue in templates/cl-emb section #48

Closed ghost closed 9 years ago

ghost commented 9 years ago

The documentation references calling #'render as follows:

(render #P"something.tmpl"
  :template-variable "template-value")

Unfortunately, at least on my Quicklisp install of caveman2/cl-emb, this does not work, you have to pass the template variables as a list in the ':env' slot (optional parameter to #'render).

The correct call is:

(render #P"something.tmpl"
  '(:template-variable "template-value"))

This threw me for a small loop when first setting up (thanks slime for making it so easy to fix though!)