pakyow-presenter/lib/presenter/config/presenter.rb in pakyow-presenter-0.9.1 vs pakyow-presenter/lib/presenter/config/presenter.rb in pakyow-presenter-0.10.0
- old
+ new
@@ -6,11 +6,11 @@
default: File.join(Pakyow::Config.app.root, 'app', 'views')
}
}
# the default view for each view store
- config.opt :default_views, { default: 'pakyow.html' }
+ config.opt :default_views, { default: :default }
# a convenience option to lookup the default_view for a view store by name
config.opt :default_view, lambda { |store_name|
views = Pakyow::Config.presenter.default_views
views.fetch(store_name) { views[:default] }
@@ -30,7 +30,7 @@
# the attribute expected for prop definitions
config.opt :prop_attribute, 'data-prop'
# the document class used to parse and render views
- config.opt :view_doc_class, StringDoc
+ config.opt :view_doc_class, Pakyow::Presenter::StringDoc
}