From 406af31340c48afaa0e14d17f8d93c79785ea451 Mon Sep 17 00:00:00 2001 From: Jeffrey 'jf' Lim Date: Fri, 6 Dec 2024 04:42:14 +0800 Subject: [PATCH 1/2] prevent trailing whitespace in generated core.clj --- .../io/github/kit_clj/kit/src/clj/core.clj | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libs/deps-template/resources/io/github/kit_clj/kit/src/clj/core.clj b/libs/deps-template/resources/io/github/kit_clj/kit/src/clj/core.clj index 44488d3..5edde86 100644 --- a/libs/deps-template/resources/io/github/kit_clj/kit/src/clj/core.clj +++ b/libs/deps-template/resources/io/github/kit_clj/kit/src/clj/core.clj @@ -5,19 +5,19 @@ [<>.config :as config] [<>.env :refer [defaults]] - ;; Edges <% if redis? %> - [kit.edge.cache.redis]<% endif %> <% if xtdb? %> + ;; Edges<% if redis? %> + [kit.edge.cache.redis]<% endif %><% if xtdb? %> [kit.edge.db.xtdb]<% endif %><% if hikari? %> [kit.edge.db.sql.hikari]<% endif %><% if conman? %> [kit.edge.db.sql.conman]<% endif %><% if migratus? %> [kit.edge.db.sql.migratus]<% endif %><% if postgres? %> [kit.edge.db.postgres]<% endif %><% if mysql? %> [kit.edge.db.mysql]<% endif %><% if hato? %> - [kit.edge.http.hato]<% endif %> <% if quartz? %> - [kit.edge.scheduling.quartz]<% endif %> <% if selmer? %> - [kit.edge.templating.selmer]<% endif %> <% if metrics? %> - [kit.edge.utils.metrics]<% endif %> <% if repl? %> - [kit.edge.utils.repl]<% endif %> <% if nrepl? %> + [kit.edge.http.hato]<% endif %><% if quartz? %> + [kit.edge.scheduling.quartz]<% endif %><% if selmer? %> + [kit.edge.templating.selmer]<% endif %><% if metrics? %> + [kit.edge.utils.metrics]<% endif %><% if repl? %> + [kit.edge.utils.repl]<% endif %><% if nrepl? %> [kit.edge.utils.nrepl]<% endif %> [kit.edge.server.undertow] [<>.web.handler] From def620fc316d899b05e94f0cb60932061c4ab83a Mon Sep 17 00:00:00 2001 From: Jeffrey 'jf' Lim Date: Fri, 6 Dec 2024 04:43:48 +0800 Subject: [PATCH 2/2] trim trailing whitespace in generated handler.clj --- .../resources/io/github/kit_clj/kit/src/clj/web/handler.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/deps-template/resources/io/github/kit_clj/kit/src/clj/web/handler.clj b/libs/deps-template/resources/io/github/kit_clj/kit/src/clj/web/handler.clj index 38a5d10..35dd408 100644 --- a/libs/deps-template/resources/io/github/kit_clj/kit/src/clj/web/handler.clj +++ b/libs/deps-template/resources/io/github/kit_clj/kit/src/clj/web/handler.clj @@ -12,7 +12,7 @@ (router) (ring/routes ;; Handle trailing slash in routes - add it + redirect to it - ;; https://github.com/metosin/reitit/blob/master/doc/ring/slash_handler.md + ;; https://github.com/metosin/reitit/blob/master/doc/ring/slash_handler.md (ring/redirect-trailing-slash-handler) (ring/create-resource-handler {:path "/"}) (when (some? api-path)