Module

x/lume/plugins/jsx.ts>JsxEngine

🔥 Static site generator for Deno 🦕
Very Popular
Latest
class JsxEngine
implements Engine
import { JsxEngine } from "https://dotland.deno.dev/x/lume@v2.4.2/plugins/jsx.ts";

Template engine to render JSX files

Constructors

new
JsxEngine(basePath: string, includes: string)

Properties

basePath: string
helpers: Record<string, Helper>
includes: string
jsxImportSource

Methods

addHelper(name: string, fn: Helper)
render(content: unknown, data?: Record<string, unknown>)
renderComponent(content: unknown, data?: Record<string, unknown>): { toString(): string; }