Configure language and template syntax
masterRustyWind infers template syntax from file extensions. If your file uses an extension that doesn't match its content, or if you are using STDIN, you can override the language profile using the --language (or -l) flag.
Supported language profiles:
html, svelte, astro, jsx, tsx, django, jinja, twig, liquid, handlebars, erb, ejs, php, blade, lit, ruby.
Behavior by profile:
- JSX/TSX: Preserves program text, comments, and dynamic attributes; sorts quoted
classandclassNameattributes. - Astro: Preserves frontmatter, expressions, dynamic class attributes, and
class:listdirectives; sorts static quoted class attributes. - Unrecognized extensions: Uses conservative legacy-compatible extraction (sorts simple static attributes, leaves template-looking attributes unchanged).
Example:
rustywind --language svelte Component.htmlrustywind --language svelte Component.html