Skip to main content Link Search Menu Expand Document (external link)

RenderTemplate overview

Added in v1.0.0


Table of contents


utils

RenderTemplate

Signature

export declare const RenderTemplate: Context.Tagged<RenderTemplate, RenderTemplate>

Added in v1.0.0

RenderTemplate (interface)

Signature

export interface RenderTemplate {
  <Values extends ReadonlyArray<Renderable<any, any>>>(
    templateStrings: TemplateStringsArray,
    values: Values
  ): Fx.Fx<RenderEvent, Placeholder.Error<Values[number]>, Scope | RenderQueue | Placeholder.Context<Values[number]>>
}

Added in v1.0.0

html

Signature

export declare function html<const Values extends ReadonlyArray<Renderable<any, any>>>(
  template: TemplateStringsArray,
  ...values: Values
): Fx.Fx<
  RenderEvent,
  Placeholder.Error<Values[number]>,
  RenderTemplate | RenderQueue | Scope | Placeholder.Context<Values[number]>
>

Added in v1.0.0