Overview

Namespaces

  • Charcoal
    • View
      • Mustache
      • Php
      • Twig

Classes

  • AbstractEngine
  • AbstractLoader
  • AbstractView
  • GenericView
  • Renderer
  • ViewConfig
  • ViewServiceProvider

Interfaces

  • EngineInterface
  • LoaderInterface
  • ViewableInterface
  • ViewInterface

Traits

  • ViewableTrait
  • Overview
  • Namespace
  • Class

Interface EngineInterface

Engines are the actual template renderers for the views.

Direct known implementers

Charcoal\View\AbstractEngine

Indirect known implementers

Charcoal\View\Mustache\MustacheEngine, Charcoal\View\Php\PhpEngine, Charcoal\View\Twig\TwigEngine
Namespace: Charcoal\View
Located at Charcoal/View/EngineInterface.php
Methods summary
public string
# loadTemplate( string $templateIdent )

Load a template (from identifier).

Load a template (from identifier).

Parameters

$templateIdent
The template identifier to load.

Returns

string
public string
# render( string $templateIdent, mixed $context )

Load a template (from identifier) and render it.

Load a template (from identifier) and render it.

Parameters

$templateIdent
The template identifier to load and render.
$context
The rendering context.

Returns

string
The rendered template string.
public string
# renderTemplate( string $templateString, mixed $context )

Render a template (from string).

Render a template (from string).

Parameters

$templateString
The template string to render.
$context
The rendering context.

Returns

string
The rendered template string.
API documentation generated by ApiGen