Sha256: 7f70dfec7ab058c20b4b66d3a29d22b5dfbd7628bab03ece6ef0d41cddd486e9
Contents?: true
Size: 878 Bytes
Versions: 9
Compression:
Stored size: 878 Bytes
Contents
Handlebars::Helpers.configure do |config| config_file = File.join(Gem.loaded_specs['handlebars-helpers'].full_gem_path, '.handlebars_helpers.json') config.helper_config_file = config_file string_config_file = File.join(Gem.loaded_specs['handlebars-helpers'].full_gem_path, '.handlebars_string_formatters.json') config.string_formatter_config_file = string_config_file end def camel require 'handlebars/helpers/string_formatting/camel' Handlebars::Helpers::StringFormatting::Camel.new end def titleize require 'handlebars/helpers/string_formatting/titleize' Handlebars::Helpers::StringFormatting::Titleize.new end def pluralize require 'handlebars/helpers/inflection/pluralize' Handlebars::Helpers::Inflection::Pluralize.new end def singularize require 'handlebars/helpers/inflection/singularize' Handlebars::Helpers::Inflection::Singularize.new end
Version data entries
9 entries across 9 versions & 1 rubygems