PHP 클래스 Interpolation, HamlPHP

파일 보기 프로젝트 열기: hamlphp/hamlphp 1 사용 예제들

공개 메소드들

메소드 설명
__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 ( )