mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Haml] Get rid of the #puts helper.
This commit is contained in:
parent
48fd593ed5
commit
c01574d5fc
2 changed files with 6 additions and 12 deletions
|
@ -149,6 +149,11 @@ that surrounds the filtered text with `<style>` and CDATA tags.
|
||||||
* Multi-line ERB statements are now properly indented,
|
* Multi-line ERB statements are now properly indented,
|
||||||
and those without any content are removed.
|
and those without any content are removed.
|
||||||
|
|
||||||
|
### Backwards Incompatibilities: Must Read!
|
||||||
|
|
||||||
|
* The `puts` helper has been removed.
|
||||||
|
Use {Haml::Helpers#haml\_concat} instead.
|
||||||
|
|
||||||
## [2.2.17](http://github.com/nex3/haml/commit/2.2.16)
|
## [2.2.17](http://github.com/nex3/haml/commit/2.2.16)
|
||||||
|
|
||||||
* Fix compilation of HTML5 doctypes when using `html2haml`.
|
* Fix compilation of HTML5 doctypes when using `html2haml`.
|
||||||
|
@ -480,7 +485,7 @@ encoding errors when dealing with non-ASCII input data.
|
||||||
This helper is being deprecated for the obvious reason
|
This helper is being deprecated for the obvious reason
|
||||||
that it conflicts with the `Kernel#puts` method.
|
that it conflicts with the `Kernel#puts` method.
|
||||||
I'm ashamed I ever chose this name.
|
I'm ashamed I ever chose this name.
|
||||||
Use `haml_tag` instead and spare me the embarrassment.
|
Use `haml_concat` instead and spare me the embarrassment.
|
||||||
|
|
||||||
#### `= haml_tag`
|
#### `= haml_tag`
|
||||||
|
|
||||||
|
|
|
@ -338,17 +338,6 @@ MESSAGE
|
||||||
haml_buffer.capture_position = nil
|
haml_buffer.capture_position = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
# @deprecated This will be removed in version 2.4.
|
|
||||||
# @see #haml_concat
|
|
||||||
def puts(*args)
|
|
||||||
warn <<END
|
|
||||||
DEPRECATION WARNING:
|
|
||||||
The Haml #puts helper is deprecated and will be removed in version 2.4.
|
|
||||||
Use the #haml_concat helper instead.
|
|
||||||
END
|
|
||||||
haml_concat(*args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Outputs text directly to the Haml buffer, with the proper indentation.
|
# Outputs text directly to the Haml buffer, with the proper indentation.
|
||||||
#
|
#
|
||||||
# @param text [#to_s] The text to output
|
# @param text [#to_s] The text to output
|
||||||
|
|
Loading…
Reference in a new issue