FileCompilerModule::compile() method

The compile method processes the contents of a file

  1. If you want to compile the entire contents of the file, override this method and don't parent::compile().
  2. If you only want to compile non-PHP sections of the file, implement the compileMarkup() method instead.

Usage

$string = $fileCompilerModule->compile(string $data);

Arguments

NameType(s)Description
datastring

Return value

string array


FileCompilerModule methods and properties

API reference based on ProcessWire core version 3.0.244

“Yesterday I sent the client a short documentation for their ProcessWire-powered website. Today all features already used with no questions. #cmsdoneright—Marc Hinse, Web designer/developer