Open markevans opened 9 years ago
How do you envision this to work? Would a block be the most preferable solution?
not_found_fallback do
datastore :s3,
bucket_name: 'my-bucket',
access_key_id: 'blahblahblah',
secret_access_key: 'blublublublu'
# or maybe the datastore should be called here manually and just return a string to the fallback file?
end
not_found_fallback do |request|
'/path/to/placeholder' # or some code that takes a look at the request and returns valid String
end
the user potentially could configure a fallback datastore, or placeholder content, or whatever