mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Sass] Mention sass-convert --in-place as a method of upgrading Sass files.
This commit is contained in:
parent
1d51bb997e
commit
4aeab9649d
2 changed files with 14 additions and 0 deletions
|
@ -63,6 +63,16 @@ Note that if `=` is used,
|
|||
SassScript will be interpreted as backwards-compatibly as posssible.
|
||||
In particular, the changes listed below don't apply in an `=` context.
|
||||
|
||||
The `sass-convert` command-line tool can be used
|
||||
to upgrade Sass files to the new syntax using the `--in-place` flag.
|
||||
For example:
|
||||
|
||||
# Upgrade style.sass:
|
||||
$ sass-convert --in-place style.sass
|
||||
|
||||
# Upgrade all Sass files:
|
||||
$ find -name '*.sass' -exec sass-convert --in-place {} \;
|
||||
|
||||
##### Quoted Strings
|
||||
|
||||
Quoted strings (e.g. `"foo"`) in SassScript now render with quotes.
|
||||
|
|
|
@ -45,6 +45,8 @@ DEPRECATION WARNING:
|
|||
On line #{line}, character #{offset}#{" of '#{filename}'" if filename}
|
||||
Variables with ! have been deprecated and will be removed in version 3.2.
|
||||
Use \"$#{varname}\" instead.
|
||||
|
||||
You can use `sass-convert --in-place --from sass2 file.sass' to convert files automatically.
|
||||
MESSAGE
|
||||
end
|
||||
|
||||
|
@ -54,6 +56,8 @@ DEPRECATION WARNING:
|
|||
On line #{line}#{", character #{offset}" if offset}#{" of '#{filename}'" if filename}
|
||||
Setting #{types} with = has been deprecated and will be removed in version 3.2.
|
||||
Use "#{name}: #{val}" instead.
|
||||
|
||||
You can use `sass-convert --in-place --from sass2 file.sass' to convert files automatically.
|
||||
MESSAGE
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue