TemplateFile::setTrim()

Set whether rendered output should have leading/trailing whitespace trimmed

By default whitespace is trimmed so you would call $templateFile->setTrim(false); to disable.

Available since version 3.0.154.

Usage

$templateFile->setTrim(bool $trim);

Arguments

NameType(s)Description
$trimbool

TemplateFile methods and properties

API reference based on ProcessWire core version 3.0.252