interface TemplateParser (View source)

This interface needs to be implemented by any template parser that is used in SSViewer

Methods

public
mixed|string
compileString($string, string $templateName = "", bool $includeDebuggingComments = false)

Compiles some passed template source code into the php code that will execute as per the template source.

Details

mixed|string compileString($string, string $templateName = "", bool $includeDebuggingComments = false)

Compiles some passed template source code into the php code that will execute as per the template source.

Parameters

$string

The source of the template

string $templateName

The name of the template, normally the filename the template source was loaded from

bool $includeDebuggingComments

True is debugging comments should be included in the output

Return Value

mixed|string

The php that, when executed (via include or exec) will behave as per the template source