lib/sht_rails/config.rb in sht_rails-0.1.1 vs lib/sht_rails/config.rb in sht_rails-0.2.0

- old
+ new

@@ -8,28 +8,32 @@ # ShtRails.configure do |config| # config.template_extension = 'handlebars' # end module Config - attr_accessor :template_base_path, :template_extension, :action_view_key, :template_namespace + 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 \ No newline at end of file +end