Created
November 28, 2019 12:13
-
-
Save athos/2194becd91af9651d2b073ba75dff09e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:paths ["."] | |
:deps {clj-skkserv | |
{:git/url "https://github.com/athos/clj-skkserv.git" | |
:sha "fba7b099252e3fb376be019b495ddee5da0ecd28"} | |
org.apache.logging.log4j/log4j-core {:mvn/version "2.12.1"}} | |
:aliases {:start {:main-opts ["-m" "clj-skkserv.main" "--handler" "skkserv-example/handler"]}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Configuration> | |
<Appenders> | |
<Console name="Console" target="SYSTEM_OUT"> | |
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/> | |
</Console> | |
</Appenders> | |
<Loggers> | |
<Root level="debug"> | |
<AppenderRef ref="Console"/> | |
</Root> | |
</Loggers> | |
</Configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns skkserv-example | |
(:require [clj-skkserv.middleware :refer [wrap-conversion-only]])) | |
(def handler | |
(-> (fn [_ content] | |
(case content | |
"rich" ["Rich Hickey"] | |
"alex" ["Alex Miller"] | |
nil)) | |
wrap-conversion-only)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment