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:
parent
85eae35813
commit
784e893a0f
|
@ -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
|
; 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'
|
; need to contain any variables you want to use in 'template-filename'
|
||||||
(defn render [template-filename & [params]]
|
(defn render [template-filename & [params]]
|
||||||
(JtwigRenderable. template params))
|
(JtwigRenderable. template-filename params))
|
||||||
```
|
```
|
||||||
|
|
||||||
And then in your routes:
|
And then in your routes:
|
||||||
|
|
Reference in a new issue