Sha256: 071cc4a6551285f88c312a8420c09f4ff51310cae0089fefb4c7bb35e6e35419
Contents?: true
Size: 735 Bytes
Versions: 2
Compression:
Stored size: 735 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 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sht_rails-0.1.1 | lib/sht_rails/config.rb |
sht_rails-0.1.0 | lib/sht_rails/config.rb |