Yes, backtick is hygienic, i.e. it adds ns to symbols. you can define name
first and inject:
```
(defmacro moo2 []
(let [name (symbol "foo")]
`(defn ~name [])))
```
понедельник, 2 марта 2020 г., 10:54:51 UTC+1 пользователь Sonny To написал:
>
> (defmacro moo1 []
> '(defn foo []))
>
> (
Hello!
You have strange syntax -- no `:` symbol before keyword, `render` (not
`render-file`) function for html template...
Try this, both works for me [selmer "0.8.0"]:
(render "{{ foo-str|safe }}" {:foo-str "bold!"})
(render-file "templates/foo.djhtml" {:foo-str "bold!"})
пятница, 20 февраля