Skip to content

1.0 Roadmap #1

Open
Open
@malobre

Description

@malobre

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.

From the compiler-sfc repo:

  • template blocks with no lang attribute or a lang attribute set to html are to be parsed in Data State.
  • Other blocks are to be parsed in RAWTEXT State.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions