hexo-renderer-handlebars

Handlebars renderer plugin for Hexo.

npm install hexo-renderer-handlebars
6 downloads in the last week
14 downloads in the last month

Handlebars renderer plugin for Hexo

With this plugin you can use the handlebars to render theme. For Hexo 2.x

Usage

Install

npm install hexo-renderer-handlebars --save

Theme Development

If you use handlebars to develop themes, may need to customize helpers. You can create a folder named helper in the theme root, then exports all helpers to an javascript object in index.js.

For example:

.
├── languages
└── layout
└── helper
    └── index.js

index.js:

module.exports = {
  foo: function() { return 'foo.'; },
  bar: function() { return 'bar.'; }
};
npm loves you