Skip to main content
Module

x/lume/plugins/jsx_preact.ts>PreactJsxEngine

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