imicros-templates
v0.0.6
Published
Moleculer service for template rendering
Downloads
3
Maintainers
Readme
imicros-templates
Moleculer service for template rendering
Uses Handlebars as render engine.
Installation
$ npm install imicros-templates --save
Dependencies
Required mixins (or a similar mixin with the same notation):
Usage
Usage template service
const { ServiceBroker } = require("moleculer");
const { MinioMixin } = require("imicros-minio");
const { Template } = require("imicros-template");
broker = new ServiceBroker({
logger: console
});
broker.createService(Template, Object.assign({
mixins: [MinioMixin()]
}));
broker.start();
Actions template service
- render { name, data } => result