Open guillheu opened 1 day ago
When converting
<script type="module" src="/priv/static/my_project.mjs">const val = 0</script>
The resulting Gleam code :
html.html([], [ html.head([], [ html.script( [ attribute.src("/priv/static/my_project.mjs"), attribute.type_("module"), ], [html.text("const val = 0")], ), ]), html.body([], []), ])
... incorrectly uses the function html.script
html.script
Instead of html.script([ <attributes> ], [html.text(" <js script content> ")]) it should be html.script([ <attributes> ], " <js script content> "), using the raw script content string instead of an array of html.text.
html.script([ <attributes> ], [html.text(" <js script content> ")])
html.script([ <attributes> ], " <js script content> ")
html.text
Thank you
When converting
The resulting Gleam code :
... incorrectly uses the function
html.script
Instead of
html.script([ <attributes> ], [html.text(" <js script content> ")])
it should behtml.script([ <attributes> ], " <js script content> ")
, using the raw script content string instead of an array ofhtml.text
.