Skip to content

v0.5.0

Choose a tag to compare

@dannote dannote released this 01 Oct 09:58
· 24 commits to master since this release

Breaking changes

  • A <script> or <style> in an .astral template is rendered where it is written, as in any HEEx template. To build one with Volt, mark it with :type={Astral.Script} or :type={Astral.Style}, following Phoenix's <script :type={Phoenix.LiveView.ColocatedJS}>. Add :type to existing blocks that should stay Volt modules.
<script>
  document.documentElement.classList.add("js")
</script>

<script :type={Astral.Script} lang="ts">
  import { mount } from "./counter"
  mount()
</script>