I have to reuse some given handlebars-templates in my middleman-project. So my plan would be to call a .hbs-partial, instead of haml-partials, like i did in rest of project.
I think, what i need is smth like this: https://gist.github.com/audionerd/2026206
I adapted this for handlebars and updated my gemfile accordingly:
gem 'handlebars'
gem 'tilt-handlebars'
As I am not that used with ruby, I have no idea where to put the module-code. Tried to call it from config.rb like this:
require 'helpers/handlebars_helper'
helpers Handlebars
But this does not work, so i think this is the wrong way…
Can somebody help me out here how to include this into my project?
Thanks!