Skip to main content

script_blocks

Function script_blocks 

Source
pub fn script_blocks(
    source: &str,
    file_format: &str,
) -> Vec<(String, Range<usize>)>
Expand description

The code blocks of a Vue, Svelte or Astro file that functions live in — <script> blocks and Astro frontmatter — with their format and the byte range of their content in source.