Astral.Formatter.Script (Astral v0.3.2)

Copy Markdown View Source

Phoenix tag-formatter adapter for Astral's embedded JavaScript and TypeScript.

Uses Volt's formatter configuration and a synthetic filename beside the template. External, unsupported-language and data scripts are not reformatted.

Summary

Functions

Format supported inline script bodies with Volt; preserve other script types.

Functions

render_tag(arg, opts)

Format supported inline script bodies with Volt; preserve other script types.