alpha-template-engine-handlebars
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Alpha template engine - handlebars

Implementation of alpha-template-engine that uses Handlebars.

Usage

import {HandlebarsTemplateEngine} from 'alpha-template-engine-handlebars';
 
const engine = new HandlebarsTemplateEngine();
 
// loads template.hbs and renders it
engine.renderTemplate('template', {name: 'alpha'})
    .then(result => {
        result; // Hello alpha! 
    });

Constructor options

option type default description
extension string "hbs" extension of template files
templatesDirectory string undefined location of template files - by default uses current working directory

API

See JSDOC

Package Sidebar

Install

npm i alpha-template-engine-handlebars

Weekly Downloads

5

Version

1.0.0

License

MIT

Last publish

Collaborators

  • wookieb