Error in the example code of the README

Trying your library I found this error rendering a template file, the fix works for me.
This commit is contained in:
Jesús Espino 2014-04-07 21:19:19 +02:00
parent 85eae35813
commit 784e893a0f

View file

@ -96,7 +96,7 @@ For web apps built on [Ring](https://github.com/ring-clojure/ring) and [Compojur
; params is an optional map that will get passed to clj-jtwig.core/render-resource. this is will
; need to contain any variables you want to use in 'template-filename'
(defn render [template-filename & [params]]
(JtwigRenderable. template params))
(JtwigRenderable. template-filename params))
```
And then in your routes: