ICanBoogie
  • Documentation
  • API Reference
  • Render 0.6.x
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 render( string $template_pathname, mixed $thisArg, array $variables, array $options = [] ) : mixed

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

VAR_TEMPLATE_PATHNAME : string

The pathname of the template being rendered.

The pathname of the template being rendered.

'__TEMPLATE_PATHNAME__'
Render 0.6.x – Check on GitHub – API documentation generated by ApiGen