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

x/lume/plugins/jsx_preact.ts>PreactJsxEngine

🔥 Static site generator for Deno 🦕
Very Popular
Latest
class PreactJsxEngine
implements Engine
import { PreactJsxEngine } from "https://deno.land/x/lume@v2.4.1/plugins/jsx_preact.ts";

Template engine to render JSX files using Preact

Constructors

new
PreactJsxEngine(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>)