Skip to content

Commit

Permalink
fix: add namespace docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva committed Jan 26, 2020
1 parent e8851ed commit 6e893ff
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions template/src/app/cards.cljs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
(ns app.cards
"This namespace contains devcards and tests, and is the entrypoint for
both 'yarn cards' and 'yarn test'."
(:require [cljsjs.react]
[cljsjs.react.dom]
; devcards needs cljsjs.react and cljsjs.react.dom to be imported
Expand Down
11 changes: 8 additions & 3 deletions template/src/app/core.cljs
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
(ns app.core
"This namespace contains your application and is the entrypoint for 'yarn start'."
(:require [reagent.core :as r]
[app.hello :refer [hello]]))

(defn ^:dev/after-load start []
(defn ^:dev/after-load render
"Render the toplevel component for this app."
[]
(r/render [hello] (.getElementById js/document "app")))

(defn ^:export main []
(start))
(defn ^:export main
"Run application startup logic."
[]
(render))
1 change: 1 addition & 0 deletions template/src/e2e/core.cljs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(ns e2e.core
"This namespace contains your e2e tests and is the entrypoint for 'yarn e2e'."
(:require [cljs.test :refer-macros [deftest is async use-fixtures]]
["http" :as http]
["serve-handler" :as serve-handler]
Expand Down

0 comments on commit 6e893ff

Please sign in to comment.