Browse documentation

render

Serializes Valyrian.js views on the server.

Table of contents

Category

Value

Import

js
import { render } from "valyrian.js/node";

Public signature

ts
render(...args: any[]): string

Declaration boundary

The installed declaration exposes render arguments as any[]. The public renderer accepts Valyrian.js renderable nodes in order and returns their serialized HTML string. This reference keeps the declared any[] instead of inventing a narrower exported type.

Serialization

Normal text and attribute values are escaped. Content assigned through v-html remains direct HTML in the serialized result.