Use HTML
Add HTML templates with the @primate/html
module.
$ npm install @primate/html
TypeScriptconfig/app.ts
import html from "@primate/html";
import config from "primate/config";
export default config({ modules: [html()] });
HTMLcomponents/Welcome.html
<h1>Hello, World!</h1>
TypeScriptroutes/index.ts
import response from "primate/response";
import route from "primate/route";
route.get(() => response.view("Welcome.html"));