Open
Description
This describes what I aim to achieve with the crate, not its current state.
Design Goals
Provide an idiomatic API to interact with Vue SFC, this library should let users parse, create, modify and print SFC.
Non-goals
- Pretty-printing block content.
Vue SFC Specifications
From vuejs.org:
- A Single File Component or SFC is a file syntactically-compatible with HTML.
- It may contain:
- A single
template
block. - A single
script
block. - A single
script setup
block. style
blocks.- Custom blocks.
- HTML comments.
- A single
From the compiler-sfc repo:
template
blocks with nolang
attribute or alang
attribute set tohtml
are to be parsed in Data State.- Other blocks are to be parsed in RAWTEXT State.
Metadata
Metadata
Assignees
Labels
No labels