lithium\template\view\Compiler::compile()

public static method

Preprocess the passed $string (usually a PHP template) for syntax replacements using sets of regular expressions.

Parameters

  • string $string

    The string to be preprocessed.

Returns

string

Processed string.

Source

	public static function compile($string) {
		$patterns = static::$_processors;
		return preg_replace(array_keys($patterns), array_values($patterns), $string);
	}