PHP Class Cml\Service\Blade

Inheritance: extends Cml\View\Base
Show file Open project: linhecheng/cmlphp

Public Methods

Method Description
addRule ( string $pattern, callable $func ) 添加一个模板替换规则
display ( string $templateFile = '' ) : mixed 抽象display

Private Methods

Method Description
initBaseDir ( string $templateFile ) : string 初始化目录

Method Details

addRule() public method

添加一个模板替换规则
public addRule ( string $pattern, callable $func )
$pattern string 正则
$func callable 执行的闭包函数

display() public method

抽象display
public display ( string $templateFile = '' ) : mixed
$templateFile string 模板文件
return mixed