I know that a Sinatra app can be built using the Classic or the Modular style, meaning that it will require sinatra for the former and sinatra/base for the latter.
But I was wondering, why does sinatra/main.rb requires sinatra/base?
This is certainly not needed when you're using the Classic or the Modular way, cause in each case this file is loaded either via sinatra.rb (classic) or directly (modular).
I know that a Sinatra app can be built using the Classic or the Modular style, meaning that it will require
sinatrafor the former andsinatra/basefor the latter.But I was wondering, why does sinatra/main.rb requires
sinatra/base?This is certainly not needed when you're using the Classic or the Modular way, cause in each case this file is loaded either via
sinatra.rb (classic)or directly (modular).