Module: Roda::RodaPlugins::Presenters
- Defined in:
- lib/roda/plugins/presenters.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Constant Summary collapse
- OPTS =
Default options
{}.freeze
Class Method Summary collapse
-
.configure(app, opts = OPTS, &block) ⇒ Object
Add presenter variables to the given
app
.
Class Method Details
.configure(app, opts = OPTS, &block) ⇒ Object
Add presenter variables to the given app
.
15 16 17 18 19 |
# File 'lib/roda/plugins/presenters.rb', line 15 def self::configure( app, opts=OPTS, &block ) collection = opts[:collection] || Module.new app.singleton_class.attr_accessor :presenter_collection app.presenter_collection = collection end |