-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Alex edited this page Jul 18, 2022
·
3 revisions
A Template
includes partials & or data
A Partial
includes data (soon will be able to nest partials in themselves too)
A Chunk
is either a template or a partial, and a Page
is the compiled result of these 3 concepts.
html-chunk-loader (htmlc) is a simple, lightweight template engine for Node. It has support for ssr/ssg depending on what your goal is.
npm i -g html-chunk-loader
yarn global add html-chunk-loader
html-chunk-loader quickstart
creates demo project in current directory, ready to be compiled
html-chunk-loader ssg
builds html files into the public
directory
npm i html-chunk-loader
yarn add html-chunk-loader
const { useLoader } = require('html-chunk-loader');
import { useLoader } from 'html-chunk-loader';