babashka / scittle

Execute Clojure(Script) directly from browser script tags via SCI
https://babashka.org/scittle
Eclipse Public License 1.0
326 stars 30 forks source link

Sourcing scittle scripts from a file does not work when script tag is multi-line #69

Closed didibus closed 1 year ago

didibus commented 1 year ago

It seems scittle is sensitive to line breaks when defining the script tag.

For example:

        <script src="cljs/script.cljs"
                type="application/x-scittle">
        </script>

Does not work, but:

        <script src="cljs/script.cljs" type="application/x-scittle"></script>

Does work.