Server option
Opening this issue to facilitate some discussion about how to best integrate some server side component into Tenzing. Integrating some basic server is simple. Serving the index.html via that server is a little more complex though as currently different optimization levels require different <script> tags.
Options I currently see regarding those <script> tags:
- Modify some html template with Leiningen to account for
:optimisations :none. - Provide separate files
index-dev.html&index-prod.html - Make additional boot task that makes new
main.jsloading Javascript files depending on how they were compiled.
If a :main option is going to be implemented into boot-cljs there would no modification be necessary.
https://github.com/adzerk/boot-cljs/issues/11
boot-cljs has a unified option again: https://github.com/adzerk/boot-cljs/commit/7fd294344fa27ae1176d5eab103e4d980af21ffb which makes any html munging unnecessary.
Any contributions for a simple server side component are welcome!
/cc @donmullen @pandeiro
Potentially this can be achieved in a generic way by making a boot-ring type of task similar to @pandeiro's boot-http. This way a handler could be specified and you're good to go.