lib/stache/config.rb in stache-1.0.0.rc vs lib/stache/config.rb in stache-1.0.0
- old
+ new
@@ -9,26 +9,29 @@
# config.template_base_path = Rails.root.join('app', 'views', 'shared')
#
# use :mustache # or :handlebars
# end
module Config
- attr_accessor :template_base_path, :shared_path
+ attr_accessor :template_base_path, :shared_path, :wrapper_module_name
def configure
yield self
end
-
def template_base_path
@template_base_path ||= ::Rails.root.join('app', 'templates')
end
def template_base_path= path
@template_base_path = Pathname.new(path)
end
def shared_path
@shared_path ||= ::Rails.root.join('app', 'templates', 'shared')
+ end
+
+ def wrapper_module_name
+ @wrapper_module_name ||= nil
end
def use template_engine
require "stache/#{template_engine}"
end
\ No newline at end of file