import { renderFile } from 'https://deno.land/x/mustache/mod.ts';
app.useViewRender({
type: 'mustache',
basePath: `${Deno.cwd()}/views/`, // path to folder views
getBody: (path: string, model: Object, config: ViewRenderConfig) =>
renderFile(normalize(`${config.basePath}${path}.html`), model),
});
-
Notifications
You must be signed in to change notification settings - Fork 0
Template render
License
alosaur/mustache
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|