egg Project template engine chooses handlebars, official website to provide egg-view-handlebars
this library, but some problems are found in the process of using it:
1. This library defaults to app/view/partials
as the local page folder, but I cannot refer to the local page in use, prompting The partial navigation could not be found
//
. view
. index.hbs
. partials
. navigation.hbs
//index.hbs
{{> navigation}}
is this because it is written incorrectly? how do I write it?
2. It seems that the template page layout.hbs
is not available in the library. How can I register a custom helper in egg?