Skip to main content

parse_blocks

Function parse_blocks 

Source
pub fn parse_blocks(source: &str) -> VanBlock
Expand description

Extract blocks from a .van source file using simple tag matching.

This is a minimal implementation that finds <template>, <script setup>, <script lang="java">, and <style> blocks by locating their opening and closing tags.