egg-view-htmling
egg view plugin for htmling.
Install
$ npm i egg-view-htmling --save
Usage
// {app_root}/config/plugin.jsexportshtmling = enable: true package: 'egg-view-htmling'; // {app_root}/config/config.default.jsexportsview = mapping: '.html': 'htmling' ; // htmling configexportshtmling = {};
Create a htmling file
// app/view/hello.htmlhello data
Render it
// app/controller/render.jsexportshtmling = async { await ctx;};