var backendPlugin = {
register: function (server, options, next) {
// register view template engine
server.views({
engines: {
html: Handlebars,
},
//relativeTo: './views/backend',
path: 'views/backend/templates',
layoutPath: 'views/backend/layout',
layout: 'default',
partialsPath:'views/backend/partials',
helpersPath: 'views/backend/helpers'
});
// add backend-only route
server.route(Routes.backend);
next();
}
};
backendPlugin.register.attributes = {
name: 'backendPlugin',
version: '1.0.0'
};
var frontendPlugin = {
register: function (server, options, next) {
// register view template engine
server.views({
engines: {
html: Handlebars,
},
//relativeTo: './views/frontend',
path: 'views/frontend/templates',
layoutPath: 'views/frontend/layout',
layout: 'default',
partialsPath:'views/frontend/partials',
helpersPath: 'views/frontend/helpers'
});
// add frontend-only route
server.route(Routes.frontend);
next();
}
};
{{!< layout/default}}
{{! The tag above means - insert everything in this file into the {content} of the default.html template }}
{{> navbar}}
{{> content}}
{{> footer}}
but backend render footer is being override by footer of frontend. (html code display)
projectfolder
--views
---backend
----partials
-----footer.html
---frontend
----partials
-----footer.html
.How extractly partials path to fix issue.