ezal-layout
v0.0.1
Published
A simple, asynchronous HTML preprocessor with JSX/TSX
Downloads
18
Readme
English | 中文
ezal-layout
Asynchronous HTML Preprocessor with JSX/TSX.
Install
pnpm install ezal-layout
yarn add ezal-layout
pnpm add ezal-layoutUsage
import { compile } from 'ezal-layout';
const { renderer } = await compile(
'path/to/template.tsx',
{ external: { title: 'Hello world!' } },
);
const html = await renderer('<h1>Title</h1>');