tenzing icon indicating copy to clipboard operation
tenzing copied to clipboard

Server option

Open martinklepsch opened this issue 11 years ago • 4 comments

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:

  1. Modify some html template with Leiningen to account for :optimisations :none.
  2. Provide separate files index-dev.html & index-prod.html
  3. Make additional boot task that makes new main.js loading Javascript files depending on how they were compiled.

martinklepsch avatar Dec 16 '14 19:12 martinklepsch

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

martinklepsch avatar Dec 16 '14 19:12 martinklepsch

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!

martinklepsch avatar Dec 16 '14 21:12 martinklepsch

/cc @donmullen @pandeiro

martinklepsch avatar Dec 16 '14 21:12 martinklepsch

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.

martinklepsch avatar Dec 16 '14 22:12 martinklepsch