node is required for running handlebarsbrew install nodehandlebars compiles the templatesnpm -g install handlebarsInstall the gem
[sudo] gem install jekyll-handlebars
Then in a plugin file within your Jekyll project's _plugins directory:
#_plugins/handlebars.rb
require 'rubygems'
require 'jekyll-handlebars'
or if you are using bundler just add:
gem 'jekyll-handlebars'
to your Gemfile. Create a plugin file that looks like this in you _plugins directory:
#_plugins/handlebars.rb
require 'rubygems'
require 'bundler/setup'
require 'jekyll-handlebars'
Make a directory for handlebars templates _assets/templates. All of your templates should end
with .template. You'll also have to manually include the handlebars runtime
(direct link) in your layouts. After the runtime, include the liquid tag for your template. If
your template is example.template the liquid tag will be {% template example %}.