Documentation

Engine
in package

Thin adapter around the Katana Blade engine.

The view roots (userspace, installed modules in order, framework) are registered as an ordered finder chain via the Registry, so Katana resolves the entry view by name, its

Tags
extends

($layout) chain, @includes and (including the framework's own components/ under the framework root) with the same userspace-then-modules-then-framework precedence the framework uses everywhere. A fresh Blade per render keeps @section state from leaking across renders.

Full rationale: docs/contributing/agents/working-with-agents.md (Render engine).

Table of Contents

render()  : View
cachePath()  : string
On-disk directory for compiled views, namespaced per project and per installed engine reference. The engine segment forces a clean cache on upgrade (Katana keys a compiled view on path + mtime, not engine version). Seam for a future generalized framework cache.

Methods

render()

public static render(string $view, string $layout, array<string|int, mixed> $data) : View
Parameters
$view : string
$layout : string
$data : array<string|int, mixed>
Return values
View

cachePath()

On-disk directory for compiled views, namespaced per project and per installed engine reference. The engine segment forces a clean cache on upgrade (Katana keys a compiled view on path + mtime, not engine version). Seam for a future generalized framework cache.

private static cachePath() : string
Return values
string

Search results