Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/plugins/jsx.ts>JsxEngine

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class JsxEngine
implements Engine
import { JsxEngine } from "https://deno.land/x/lume@v2.2.4/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; }