Sha256: 403be127094fa1c01fe58c565afc21eb4d10ba3b59bc8431456cb2f15432694b
Contents?: true
Size: 813 Bytes
Versions: 1
Compression:
Stored size: 813 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 attr_accessor :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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sht_rails-0.2.0 | lib/sht_rails/config.rb |