ITranslationMiddleware

Interface

Defines a middleware component in the translation pipeline that converts VNode instances into IRenderable instances.

Namespace: RazorConsole.Core.Abstractions.Rendering
Assembly: RazorConsole.Core

Definition

public interface ITranslationMiddleware
Remarks:The translation pipeline uses a chain-of-responsibility pattern where multiple middleware components are registered and executed in order. Each middleware can either: Handle the node and return an IRenderable directly, stopping the chain. Delegate to the next middleware by calling TranslationDelegate.

Methods

1
NameTypeDescription
Translate(TranslationContext, TranslationDelegate, VNode)()IRenderableTranslates a virtual DOM node into a IRenderable