ICanBoogie/Render v0.5.1
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Render
      • EngineCollection
      • Renderer
      • TemplateResolver

Classes

  • BasicTemplateResolver
  • EngineCollection
  • EngineNotAvailable
  • EngineNotDefined
  • PHPEngine
  • Renderer
  • StringObject
  • TemplateName

Interfaces

  • Engine
  • Exception
  • TemplateResolver
  • TemplateResolverDecorator

Traits

  • TemplateResolverDecoratorTrait
  • TemplateResolverTrait

Exceptions

  • InvalidRenderTarget
  • TemplateNotFound

Functions

  • get_engines
  • get_renderer
  • get_template_resolver
  • render

Interface Engine

An interface for template engines.

Direct known implementers

ICanBoogie\Render\PHPEngine

Namespace: ICanBoogie\Render
Located at Engine.php

Methods summary

public mixed
# render( string $template_pathname, mixed $thisArg, array $variables, array $options = [] )

Renders a template.

Renders a template.

Note: Template engines implementing this interface are expected to add ICanBoogie\Render\Engine::VAR_TEMPLATE_PATHNAME to the variables, so that the template being rendered can be tracked easily.

Parameters

$template_pathname
Pathname to the template to render.
$thisArg
thisArg, if supported by the engine.
$variables
Variable to render the template with.
$options
Miscellaneous options.

Returns

mixed

Constants summary

string VAR_TEMPLATE_PATHNAME

The pathname of the template being rendered.

The pathname of the template being rendered.

# '__TEMPLATE_PATHNAME__'
ICanBoogie/Render v0.5.1 API documentation generated by ApiGen