I just came across this line in the form of HAML / Rails:
~ f.input :content, label: false
What does tilde do?
Saving spaces: ~ :
~It works the same way =, except that it starts Haml::Helpers#find_and_preserveon its tab. For instance,~ "Foo\n<pre>Bar\nBaz</pre>"matches with:= find_and_preserve("Foo\n<pre>Bar\nBaz</pre>")and compiled for:Foo <pre>Bar
Baz</pre>
~It works the same way =, except that it starts Haml::Helpers#find_and_preserveon its tab. For instance,
~
=
Haml::Helpers#find_and_preserve
~ "Foo\n<pre>Bar\nBaz</pre>"
matches with:
= find_and_preserve("Foo\n<pre>Bar\nBaz</pre>")
and compiled for:
Foo <pre>Bar
Baz</pre>
Source: https://habr.com/ru/post/1662402/More articles:The Doctrine oneToMany relation results in a null value for the foreign key on the return object during serialization - phpdisable precompiled header for single file - c ++Schedule notifications with Swift 3 for an array of dates - iosHow can I use CSS conversion scale with ionicons? - cssC ++ Initializing a Vector Inside a Structure Definition - c ++Refresh ListView by adding new elements at runtime in NativeScript and Angular - angularHow to get JAVA_HOME and CATALINA_HOME environment variables in Java? - javaLink to return function by value and auto - c ++It is not possible to run two applications simultaneously in Java 6 and Java 8 using jnlp - javaConvert Hex color code to color name (string) - c #All Articles