mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
da3439af02
Moves DSL methods previously defined on (main) to Sinatra::Application and begins documenting them. This unifies a bunch of method names and will allow individual Application instances to be used as a sandbox for DSL execution. The Sinatra::Application::FORWARD_METHODS array is a list of method names that should be available at the top-level. A constant was created so that its easy to tell what methods are available from top-level when reading the API documentation. When one of the methods is invoked on (main), the message is forwarded to the default application (Sinatra::application). This is in preparation for some configuration related changes and multi-app support. |
||
---|---|---|
.. | ||
public | ||
views | ||
app_test.rb | ||
application_test.rb | ||
builder_test.rb | ||
custom_error_test.rb | ||
diddy_test.rb | ||
erb_test.rb | ||
event_context_test.rb | ||
events_test.rb | ||
haml_test.rb | ||
helper.rb | ||
mapped_error_test.rb | ||
rest_test.rb | ||
sass_test.rb | ||
sessions_test.rb | ||
streaming_test.rb | ||
sym_params_test.rb | ||
template_test.rb | ||
use_in_file_templates_test.rb |