[ClojureScript] Re: Script tags in Html for different environments

2014-07-28 Thread Thomas Heller
Hey, if you are feeling adventurous you could try https://github.com/thheller/shadow-build, it is an alternate build "library" to lein-cljsbuild that I wrote that doesn't have that problem. But its quite alot more complicated to get started compared to lein-cljsbuild, never tried figwheel so n

[ClojureScript] Re: Script tags in Html for different environments

2014-07-28 Thread Mark Fisher
> How are other getting around this? Are there better ways to deal with this? We're using middleman to produce static websites (so the front end devs can do all their stuff as they want), and then add the lein cljsbuild files over the top with suitable output directories set in project.clj. To

[ClojureScript] Re: Script tags in Html for different environments

2014-07-29 Thread Ivan L
This is the sweet spot for lein profiles. cljs-start has a good example of it. The nice thing about using profiles is that you can reuse as much as you want in your dev profile code (which will probably just be a few simple items like handlers and template page or two) and then your prod confi

[ClojureScript] Re: Script tags in Html for different environments

2014-07-29 Thread Ivan L
This is the sweet spot for lein profiles. cljs-start has a good example of it. The nice thing about using profiles is that you can reuse as much as you want in your dev profile code (which will probably just be a few simple items like handlers and template page or two) and then your prod confi

Re: [ClojureScript] Re: Script tags in Html for different environments

2014-07-29 Thread Udayakumar Rayala
Thanks everyone for the replies. It is really useful to hear your thoughts. I am summarizing the options and my thoughts around them: - https://github.com/thheller/shadow-build I havent looked into this. I will check and see if it solves my use case. - Enlive to override the index.html in develo