Template
in package
Basic templating engine. Replaces %item% with $fields[ 'item' ].
Table of Contents
Methods
- fromFile() : mixed
- fromText() : string
Methods
fromFile()
public
static fromFile(string $file, array<string|int, mixed> $fields[, IFileSystem|null $fs = null ]) : mixed
Parameters
- $file : string
- $fields : array<string|int, mixed>
- $fs : IFileSystem|null = null
-
File system implementation (null = use real file system)
fromText()
public
static fromText(string $text, array<string|int, mixed> $fields) : string
Parameters
- $text : string
- $fields : array<string|int, mixed>