Repository navigation
v0.5.0
Breaking changes
- A
<script>or<style>in an.astraltemplate 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:typeto 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>