Sha256: 97da323c9cd5b450da4c1ee446879ae82557d942c5d7a65f6b1b12b3c446061a
Contents?: true
Size: 828 Bytes
Versions: 2
Compression:
Stored size: 828 Bytes
Contents
module ShtRails # Change config options in an initializer: # # ShtRails.template_extension = 'handlebars' # # Or in a block: # # ShtRails.configure do |config| # config.template_extension = 'handlebars' # end module Config extend self attr_writer :template_base_path, :template_extension, :action_view_key, :template_namespace, :helper_path def configure yield self end def template_base_path @template_base_path ||= Rails.root.join("app", "templates") end def template_extension @template_extension ||= 'handlebars' end def action_view_key @action_view_key ||= 'handlebars' end def template_namespace @template_namespace ||= 'SHT' end def helper_path @helper_path ||= 'templates/helpers.js' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sht_rails-0.2.2 | lib/sht_rails/config.rb |
sht_rails-0.2.1 | lib/sht_rails/config.rb |