-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Julius script type module support #1681
Comments
Currently you'd have to do some legwork involving rendering the Julius to text and then embedding it inside a Hamlet tag. I'm definitely open to a PR to add some direct support for this workflow. |
Is there any workaround for supporting javascript modules at the moment? I have a simple
EDIT A rather hacky solution is to include it on the bottom of the
|
@JohnnyCrazy If you don't need any interpolation in your module file, then your workaround is a good idea. I've started working on a version using interpolation here: #1682, but I've run into some issues testing it. I've not had time to work on it in a few weeks but hopefully I can get back to it soon and clean it up so it can be merged. |
Is there a way for julius files to be emitted with
<script type="module">
tags? As far as I can tell from these instances:it isn't possible without defining a newtype over
Javascript
or something. In any case, it would be nice to be able to use something like preact/htm with variable interpolation this way. I can attempt a PR to addjsModule/juliusModule/jsFileModule
/etc. quasiquoters but I figured I'd gauge interest and feasibility here before going ahead with that.The text was updated successfully, but these errors were encountered: