Created
September 26, 2015 00:32
-
-
Save pedrozath/be25e1cf91fd2b07f2bc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| erb: | |
| <p>You can also embed html in the text line</p> | |
| <pre class="code slim"><code class="slim">- articles.each do |a| | |
| | <tr><td>#{a.name}</td><td>#{a.description}</td></tr> | |
| </code></pre> | |
| <h3>Verbatim text with trailing white space <code>'</code></h3> | |
| <p>The single quote tells Slim to copy the line (similar to <code>|</code>), but makes sure that a single trailing white space is appended.</p> | |
| <h3>Inline html <code><</code></h3> | |
| <p>You can write html tags directly in Slim which allows you to write your templates in a more html like style with closing tags or mix html and Slim style. | |
| The leading <code><</code> works like an implicit <code>|</code>:</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment