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.248

Latest news

“Indeed, if ProcessWire can be considered as a CMS in its own right, it also offers all the advantages of a CMF (Content Management Framework). Unlike other solutions, the programmer is not forced to follow the proposed model and can integrate his/her ways of doing things.” —Guy Verville, Spiria Digital Inc.