메소드 | 설명 | |
---|---|---|
addInclude ( string $id, string $content, array $attributes = [] ) | Add a new include. | |
addLayout ( string $id, string $content, array $attributes = [] ) | Add a new layout. | |
clear ( ) | Clears all templates registered. | |
renderBlocks ( string $id, string $content, array $attributes ) : string | Render a blocks of content (layout NOT included). | |
renderPage ( string $id, string $content, string $layoutName, array $siteAttributes ) : string | Render a page completely (layout included). |
public renderPage ( string $id, string $content, string $layoutName, array $siteAttributes ) : string | ||
$id | string | The identifier of the page. e.g: path |
$content | string | The page content |
$layoutName | string | The name of the layout |
$siteAttributes | array | The attributes for using inside the content |
리턴 | string | The page rendered |