Module

x/crate/mod.ts

a full-stack web framework built with deno!
Go to Latest
File
/* Crate —— v1.0 */
import serveCrate from "./server.ts";
type Obj = { native?: boolean, title?: string, width?: number, height?: number, directory?: string, routes: Record<string, unknown>}
export default class Crate { serve(src: Obj) { serveCrate(src); if(src.native) { import("./rust/bindings/bindings.ts").then((crate) => { crate.make_crate(src.title!, src.width!, src.height!) }); } }}