PHP Класс Interpolation, HamlPHP

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( string $text, boolean $inPhpContext = false ) When $inPhpContext is true, instead of putting the expression inde php tags () the class will render a concatenation like: . ($text) . unless the interpolation makes the whole text. In which case, it will only the markers (#{ and }) will be removed.
render ( )

Приватные методы

Метод Описание
_containsInterpolation ( $str )

Описание методов

__construct() публичный Метод

When $inPhpContext is true, instead of putting the expression inde php tags () the class will render a concatenation like: . ($text) . unless the interpolation makes the whole text. In which case, it will only the markers (#{ and }) will be removed.
public __construct ( string $text, boolean $inPhpContext = false )
$text string
$inPhpContext boolean (default: false) Whether this interpolation is already inside or not

render() публичный Метод

public render ( )