 (defn garden? [opts]
   (some #{"+garden"} opts))
 
-(defn cljs-lib? [opts]
-  (or (om? opts) (reagent? opts)))
+;; ---------------------------------------------------------------
+;; Template data helpers
+;; ---------------------------------------------------------------
 
 (defn source-paths [opts]
   (cond-> #{"src/cljs"}

                   (vector (if (divshot? opts) ["divshot.json" (render "divshot.json" data)])
                           (if (garden? opts)  ["src/clj/{{sanitized}}/styles.clj" (render "styles.clj" data)])
                           (if (sass? opts)    ["sass/styles.sass" (render "styles.sass" data)])
                           (if (reagent? opts) [app-cljs (render "reagent-app.cljs" data)])
                           (if (om? opts)      [app-cljs (render "om-app.cljs" data)])
                           (if (not (cljs-lib? opts)) [app-cljs (render "app.cljs" data)])

                           ["resources/index.html" (render "index.html" data)]
                           ["build.boot" (render "build.boot" data)])))))

(defn indent [n list]
  (wrap-indent identity n list))

; ---------------------------------------------------------------
; Options - currently: divshot, reagent, om, sass, garden
; ---------------------------------------------------------------

(defn divshot? [opts]
  (some #{"+divshot"} opts))
