Expand collection laziness to data
This commit is contained in:
parent
b127283040
commit
33cb9b3ba9
6 changed files with 62 additions and 6 deletions
|
@ -14,11 +14,11 @@ module Middleman
|
|||
|
||||
def initialize(app, config={}, &block)
|
||||
super
|
||||
|
||||
@data_store = DataStore.new(app, DATA_FILE_MATCHER)
|
||||
app.config.define_setting :data_dir, 'data', 'The directory data files are stored in'
|
||||
|
||||
app.add_to_instance(:data, &method(:data_store))
|
||||
app.add_to_config_context(:data, &method(:data_store))
|
||||
|
||||
start_watching(app.config[:data_dir])
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue