Changelog History
Page 7
-
v2.2.19 Changes
- ๐ Fix a bug with the integration with Rails' XSS support.
In particular, correctly override
safe_concat
.
- ๐ Fix a bug with the integration with Rails' XSS support.
In particular, correctly override
-
v2.2.18 Changes
๐ Support the new XSS-protection API used in Rails 3.
๐ Use
Rails.env
rather thanRAILS_ENV
when running under Rails 3.0. Thanks to Duncan Grazier.โ Add a
--unix-newlines
flag to all executables for outputting Unix-style newlines on Windows.๐ Fix a couple bugs with the
:erb
filter: make sure error reporting uses the correct line numbers, and allow multi-line expressions.๐ Fix a parsing bug for HTML-style attributes including
#
.
-
v2.2.17 Changes
๐ Fix compilation of HTML5 doctypes when using
html2haml
.nil
values for Sass options are now ignored, rather than raising errors.
-
v2.2.16 Changes
- Abstract out references to
ActionView::TemplateError
,ActionView::TemplateHandler
, etc. These have all been renamed toActionView::Template::*
in Rails 3.0.
- Abstract out references to
-
v2.2.15 Changes
๐ Allow
if
statements with no content followed byelse
clauses. For example:- if foo
- else bar
-
v2.2.14 Changes
โ Don't print warnings when escaping attributes containing non-ASCII characters in Ruby 1.9.
๐ Don't crash when parsing an XHTML Strict doctype in
html2haml
.๐ Support the HTML5 doctype in an XHTML document by using
!!! 5
as the doctype declaration.
-
v2.2.13 Changes
Allow users to specify {file:HAML_REFERENCE.md#encoding_option
:encoding => "ascii-8bit"
} even for templates that include non-ASCII byte sequences. This makes Haml templates not crash when given non-ASCII input that's marked as having an ASCII encoding.๐ Fixed an incompatibility with Hpricot 0.8.2, which is used for
html2haml
.
-
v2.2.12 Changes
There were no changes made to Haml between versions 2.2.11 and 2.2.12.
-
v2.2.11 Changes
๐ Fixed a bug with XSS protection where HTML escaping would raise an error if passed a non-string value. Note that this doesn't affect any HTML escaping when XSS protection is disabled.
๐ Fixed a bug in outer-whitespace nuking where whitespace-only Ruby strings blocked whitespace nuking beyond them.
๐ Use
ensure
to protect the resetting of the Haml output buffer against exceptions that are raised within the compiled Haml code.๐ Fix an error line-numbering bug that appeared if an error was thrown within loud script (
=
). This is not the best solution, as it disables a few optimizations, but it shouldn't have too much effect and the optimizations will hopefully be re-enabled in version 2.4.๐ Don't crash if the plugin skeleton is installed and
rake gems:install
is run.๐ Don't use
RAILS_ROOT
directly. This no longer exists in Rails 3.0. Instead abstract this out asHaml::Util.rails_root
. This changes makes Haml fully compatible with edge Rails as of this writing.
-
v2.2.10 Changes
๐ Fixed a bug where elements with dynamic attributes and no content would have too much whitespace between the opening and closing tag.
๐ Changed
rails/init.rb
away from loadinginit.rb
and instead have it basically copy the content. This allows us to transfer the proper binding toHaml.init_rails
.๐ Make sure Haml only tries to enable XSS protection integration once all other plugins are loaded. This allows it to work properly when Haml is a gem and the
rails_xss
plugin is being used.Mark the return value of Haml templates as HTML safe. This makes Haml partials work with Rails' XSS protection.