NaifyView\Executor\MarkupRuntime クラス

MarkupRuntime — 補間とタグ描画の担当をつなぐ

値の出力、属性、開始・終了タグを別の部品へ任せ、要素の描画手順をまとめる。

ASTを直接実行する経路の内部部品。通常の描画にはView::render()を使う。

プロパティ

名前型説明
private $outputRuntime OutputRuntime interpolation / filter runtime
private $attributeRuntime AttributeRuntime attribute string owner
private $elementFrameRuntime ElementFrameRuntime element frame owner

メソッド

メソッド説明
public __construct(OutputRuntime $outputRuntime, ?AttributeRuntime $attributeRuntime, ?ElementFrameRuntime $elementFrameRuntime): void インスタンスを初期化する
public renderInterpolation(string $expression, array $scope, array $state, callable $renderNodes): NodeRenderResult `renderInterpolation()` を実行する
public renderElement(ElementNode $node, array $scope, array $state, callable $renderNodes): NodeRenderResult `renderElement()` を実行する