Hi, I recently finished hacking on a small project, that helps to build 
entire web application
(with css, images, etc, not just .cljs files), and think it might be useful 
for others.

The suggested workflow is following:

1) Define assets component(s)

com/example/app/assets.edn

{:dependencies ["com/twitter/bootstrap"]
 :css ["app.css"]
 :files ["icons.png", "background.png"]
 :page {:main-ns com/example/app/main
        :body "index.html"}}

2) Then, just build it

$ lein assets page com/example/app

You get an entire single page application ready to be hosted from anywhere 
in the web. 

3) Another options is to start development server

$ lein assets server


There are some differences with cljsbuild workflow, namely 

   1. You can use javascript files just like you use .cljs files
   2. You specify namespace as a build entry point

I'd like to note that this project is a hack. No new features are planned 
for near future, although
bugs will be fixed, dependencies maintained and patches accepted.
Despite the fact, that builder was implemented with ease of extension and 
customization in mind,
the way to do it is not documented.

Anyway, I hope you'll find it useful. Here are links

leiningen plugin - https://github.com/dar-clojure/assets-lein
assets.edn spec - https://github.com/dar-clojure/assets

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to