Handlebars
Helpers¶ ↑
Handlebars
Helpers is a library that provides 44 handlebars helpers across 7 categories, it was built to complement cowboyd/handlebars.rb with Ruby helpers commonly found in the Javascript community
As a Ruby Developer, I want to use HandlebarsJS with useful helpers, so that I have a rich templating experience
Usage¶ ↑
Sample Classes¶ ↑
Simple example¶ ↑
Render a template value using camel case and dasherize case
Handlebars::Helpers::Template.render('{{camel .}}', 'david was here') # => "DavidWasHere" Handlebars::Helpers::Template.render('{{dasherize .}}', 'david was here') # => "david-was-here"