Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/momentum/mvc-handlebars/deps.ts>ViewEngine

Momentum is an open-source framework for building server-side Deno applications in TypeScript. It provides the paradigms and design patterns to guide developers to create robust, scalable, and enterprise-grade applications.
Latest
interface ViewEngine
import { type ViewEngine } from "https://deno.land/x/momentum@v0.8.2/mvc-handlebars/deps.ts";

Methods

renderTemplate(
model: unknown,
layout: string | false,
cacheTemplate: boolean,
templateKey: string,
templateCallback: () => Promise<string | undefined>,
layoutCallback: () => Promise<string | undefined>,
): Promise<string | undefined>
resolveFilePath(viewPath: string): string | Promise<string>
registerHelper(name: string, helperFunc: (...args: unknown[]) => unknown): void
loadPartial(
name: string,
originalFilename: string,
template: string,
): void | Promise<void>