Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/vento/src/tokenizer.ts>parseTag

🌬 A template engine for Deno & Node
Go to Latest
function parseTag
import { parseTag } from "https://deno.land/x/vento@v0.12.6/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[]