mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-30 18:10:20 +02:00
Fixed indentation
This commit is contained in:
@@ -100,7 +100,7 @@ markup that is well-structured, DRY, logical, and easier to read.
|
|||||||
|
|
||||||
|
|
||||||
/ To run some ruby code without rendering it to the html, use a hyphen instead
|
/ To run some ruby code without rendering it to the html, use a hyphen instead
|
||||||
- books = ['book one', 'book 2', 'book 3']
|
- books = ['book 1', 'book 2', 'book 3']
|
||||||
|
|
||||||
/ Allowing you to do all sorts of awesome, like ruby blocks
|
/ Allowing you to do all sorts of awesome, like ruby blocks
|
||||||
- books.shuffle.each_with_index do |book, index|
|
- books.shuffle.each_with_index do |book, index|
|
||||||
@@ -130,12 +130,12 @@ markup that is well-structured, DRY, logical, and easier to read.
|
|||||||
Use the colon to define haml filters, one example of a filter you can
|
Use the colon to define haml filters, one example of a filter you can
|
||||||
use is :javascript, which can be used for writing inline js
|
use is :javascript, which can be used for writing inline js
|
||||||
|
|
||||||
:javascript
|
:javascript
|
||||||
console.log('This is inline <script>');
|
console.log('This is inline <script>');
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Additional resources
|
## Additional resources
|
||||||
|
|
||||||
- [What is HAML?](http://haml.info/) - A good introduction that does a much better job of explaining how beneficial HAML can be.
|
- [What is HAML?](http://haml.info/) - A good introduction that does a much better job of explaining the benefits of using HAML.
|
||||||
- [Official Docs](http://www.ruby-doc.org/core-2.1.1/) - If you'd like to go a little deeper.
|
- [Official Docs](http://www.ruby-doc.org/core-2.1.1/) - If you'd like to go a little deeper.
|
||||||
|
Reference in New Issue
Block a user