luminus-framework / luminus-template

a template project for the Luminus framework
http://www.luminusweb.net/
MIT License
647 stars 147 forks source link

Support for +kioo #110

Open rterbush opened 9 years ago

rterbush commented 9 years ago

Kioo is on my list of requirements for a cljs app framework. If no one has started this, I will add it to my list.

yogthos commented 9 years ago

Sure, I think it would make sense for it to depend on the +cljs profile, so it should go before it here:

(defn generate-project
  "Create a new Luminus project"
  [options]
  (main/info "Generating a Luminus project.")
  (with-redefs [leiningen.new.templates/render-text render-template]
    (let [[assets options]
          (-> [core-assets options]
              auth-features
              db-features
              cucumber-features
              site-features
             ;;todo kioo-features
              cljs-features
              http-kit-features
              immutant-features
              sassc-features)]
      (render-assets assets (format-options options)))))

Then it could check if +cljs is in the list of options and if not set it there.