【发布时间】:2016-05-11 09:09:11
【问题描述】:
我正在关注本教程building a Clojure backend 而且我不太精通 Clojure。
教程提供了这个源文件
(ns shouter.web
(:require [compojure.core :refer [defroutes GET]]
[ring.adapter.jetty :as ring]))
(defroutes routes
(GET "/" [] "<h2>Hello World</h2>"))
(defn -main []
(ring/run-jetty #'routes {:port 8080 :join? false}))
#' 到底是什么意思?我知道它以某种方式获得了routes 的价值,但你为什么不能直接说
(ring/run-jetty routes {:port 8080 :join? false}))
#' 是特定于环的语法吗?在这件事上找不到任何好的资源。
【问题讨论】: