pakyow-presenter/lib/presenter/configuration/presenter.rb in pakyow-presenter-0.7.2 vs pakyow-presenter/lib/presenter/configuration/presenter.rb in pakyow-presenter-0.8rc1
- old
+ new
@@ -1,10 +1,11 @@
module Pakyow
module Configuration
class Presenter
class << self
- attr_accessor :view_caching, :javascripts, :stylesheets, :view_dir, :default_view
+ attr_accessor :view_caching, :javascripts, :stylesheets, :view_stores, :default_view,
+ :scope_attribute, :prop_attribute, :container_attribute
# Location of javascripts
def javascripts
@javascripts || '/javascripts'
end
@@ -12,19 +13,31 @@
# Location of stylesheets
def stylesheets
@stylesheets || '/stylesheets'
end
- def view_dir
- @view_dir || "#{Configuration::Base.app.root}/app/views"
+ def view_stores
+ @view_stores ||= {:default => "#{Configuration::Base.app.root}/views"}
end
def view_caching
@view_caching || false
end
def default_view
@default_view || "pakyow.html"
+ end
+
+ def scope_attribute
+ @scope_attribute || "data-scope"
+ end
+
+ def prop_attribute
+ @prop_attribute || "data-prop"
+ end
+
+ def container_attribute
+ @container_attribute || "data-container"
end
end
end
end