Name: egg-view-handlebars
Owner: egg
Description: egg view plugin for handlebars
Created: 2017-02-25 15:23:33.0
Updated: 2018-05-22 02:52:45.0
Pushed: 2018-01-16 02:00:33.0
Homepage: null
Size: 55
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
egg view plugin for handlebars
m i egg-view-handlebars --save
app_root}/config/plugin.js
rts.handlebars = {
able: true,
ckage: 'egg-view-handlebars',
s
app_root}/config/config.default.js
iew
member
property defaultViewEngine: string setup default view engine
property defaultExtension: string template file extension
property mapping: Object {string: string}
rts.view = {
faultViewEngine: 'handlebars',
faultExtension: '.hbs',
pping: {
'.hbs': 'handlebars',
Partials are loaded from app/view/partials
by default, you can define user_message.hbs
and use userMessage
as partial.
Note:
foo_bar > fooBar
, foo-bar > fooBar
see config/config.default.js for more detail.
Please open an issue here.