Skip to content

Commit bce8772

Browse files
committed
templates: warn add-template-directory type error
1 parent 948d874 commit bce8772

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

content/building-blocks/templates.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,25 @@ and then we can declare and compile the ones we use, for example::
2929
(defparameter +products.html+ (djula:compile-template* "products.html"))
3030
~~~
3131

32+
{{% notice info %}}
33+
34+
If you get an error message when calling `add-template-directory` like this
35+
36+
```
37+
The value
38+
#P"/home/user/…/project/src/templates/index.html"
39+
40+
is not of type
41+
STRING
42+
from the function type declaration.
43+
[Condition of type TYPE-ERROR]
44+
```
45+
46+
then update your Quicklisp dist or clone Djula in `~/quicklisp/local-projects/`.
47+
48+
{{% /notice %}}
49+
50+
3251
A Djula template looks like this:
3352

3453
```html

0 commit comments

Comments
 (0)