PHP 인터페이스 Yosymfony\Spress\Core\ContentManager\Renderizer\RenderizerInterface

Renderizer are responsible for formatting items. This can be considered as a template engine.
저자: Victor Puertas ([email protected])
파일 보기 프로젝트 열기: spress/spress

공개 메소드들

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

메소드 상세

addInclude() 공개 메소드

Add a new include.
public addInclude ( string $id, string $content, array $attributes = [] )
$id string The identifier of the include. e.g: path
$content string The content of the include
$attributes array The attributes of the include

addLayout() 공개 메소드

Add a new layout.
public addLayout ( string $id, string $content, array $attributes = [] )
$id string The identifier of the layout. e.g: path
$content string The content of the layout
$attributes array The attributes of the layout

clear() 공개 메소드

Clears all templates registered.
public clear ( )

renderBlocks() 공개 메소드

Render a blocks of content (layout NOT included).
public renderBlocks ( string $id, string $content, array $attributes ) : string
$id string The identifier of the content. e.g: path
$content string The content
$attributes array The attributes for using inside the content
리턴 string The block rendered

renderPage() 공개 메소드

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