`__END__` in the middle of lines should not be recognized as the end of the ruby script. Ruby only accepts the line just contain `__END__`. Beginning/tailing whitespaces are not allowed. Signed-off-by: Simon Rozet <firstname.lastname@example.org>
…ructure. Signed-off-by: Simon Rozet <email@example.com>
Tiny yet potentially useful abstraction, allowing developers to tap into a route proc before it has been executed.
The previous behavior was to run only the main test suite, which led to missed compat issues. You can get the old behavior by running "rake test" explicitly.
* The options hash now takes the :views, :layout, and :locals options but also any template-specific options. The generic options are removed before calling the template specific render method. * The haml ":options" and ":haml" options are deprecated. These should be merged in directly with the options hash. * The sass ":sass" option is deprecated. Merge directly with the options hash instead. * All template engines have an app-level option named the same as their engine (erb, haml, sass, etc.). This must be a hash and is merged with the options passed to the render method. * The :views_directory option is deprecated; renamed :views.
Ensures globally set Haml/Sass configurations can be overridden on an individual call basis, while retaining the global values. Renamed the #haml() :options key to :haml_options for clarity and consistency with the #sass method.