Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major overhaul of the template to match latest FW/1 setup (component-based, handler/router with Ring/Compojure, adds display of version to layout, supports both Jetty and http-kit).
- Loading branch information
1 parent
0396fcb
commit c8449a3
Showing
7 changed files
with
73 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
(def version "0.5.2") | ||
(def version "0.8.0") | ||
|
||
(task-options! | ||
pom {:project 'fw1/boot-template | ||
|
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
(ns {{name}}.controllers.main | ||
(:require [framework.one :as fw1])) | ||
|
||
(defn default "/main/default handler" [rc] | ||
(defn before | ||
"Run before each controller here." | ||
[rc] | ||
rc) | ||
|
||
(defn after | ||
"Run after each controller here." | ||
[rc] | ||
(assoc rc :version (-> rc (fw1/event :config) :version))) | ||
|
||
(defn default | ||
"/main/default handler" | ||
[rc] | ||
rc) |
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
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