1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

[Sass] Make :line_numbers an alias for :line_comments.

This commit is contained in:
Nathan Weizenbaum 2010-01-22 08:51:03 -08:00
parent 6ff8c04523
commit 436d4fd395
3 changed files with 8 additions and 0 deletions

View file

@ -8,6 +8,9 @@
* Use `Rails.env` rather than `RAILS_ENV` when running under Rails 3.0.
Thanks to [Duncan Grazier](http://duncangrazier.com/).
* Support `:line_numbers` as an alias for {file:SASS_REFERENCE.md#line_numbers-option `:line_comments`},
since that's what the docs have said forever.
## [2.2.17](http://github.com/nex3/haml/commit/2.2.16)
* When the {file:SASS_REFERENCE.md#full_exception-option `:full_exception` option}

View file

@ -205,6 +205,7 @@ Available options are:
where a selector is defined to be emitted into the compiled CSS
as a comment. Useful for debugging especially when using imports
and mixins.
This option may also be called `:line_comments`.
{#custom-option} `:custom`
: An option that's available for individual applications to set

View file

@ -144,6 +144,10 @@ module Sass
@options = DEFAULT_OPTIONS.merge(options.reject {|k, v| v.nil?})
@template = template
# Support both, because the docs said one and the other actually worked
# for quite a long time.
@options[:line_comments] ||= @options[:line_numbers]
# Backwards compatibility
@options[:property_syntax] ||= @options[:attribute_syntax]
case @options[:property_syntax]