Skip to main content
Module

x/eta/src/utils.ts>trimWS

Embedded JS template engine for Node, Deno, and the browser. Lighweight, fast, and pluggable. Written in TypeScript
Go to Latest
function trimWS
import { trimWS } from "https://deno.land/x/eta@v3.2.0/src/utils.ts";

Takes a string within a template and trims it, based on the preceding tag's whitespace control and config.autoTrim

Parameters

str: string
config: EtaConfig
wsLeft: string | false
optional
wsRight: string | false

Returns

string