Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/vento/src/tokenizer.ts>parseTag

🌬 A template engine for Deno & Node
Latest
function parseTag
import { parseTag } from "https://deno.land/x/vento@v1.12.11/src/tokenizer.ts";

Parse a tag and return the indexes of the start and end brackets, and the filters between. For example: {{ tag |> filter1 |> filter2 }} => [2, 9, 20, 31]

Parameters

source: string

Returns

number[]