Skip to main content
Module

x/handlebars/mod.ts>Handlebars

Handlebars template engine for Deno
Latest
class Handlebars
import { Handlebars } from "https://deno.land/x/handlebars@v0.10.0/mod.ts";

Constructors

new
Handlebars(config?: HandlebarsConfig)

Methods

private
getTemplatesPath(path: string): Promise<string[]>

Gets template pathes with glob match

Processes on register partials

render(path: string, context?: Record<string, unknown>): Promise<string>

Processes on render without partials and layouts

renderView(
view: string,
context?: Record<string, unknown>,
layout?: string,
): Promise<string>

Processes of rendering view