diff options
| author | Kristin Linn <klinn@upenn.edu> | 2015-10-20 16:26:35 -0400 | 
|---|---|---|
| committer | Kristin Linn <klinn@upenn.edu> | 2015-10-20 16:26:35 -0400 | 
| commit | 396e6f5d9708f827512c4699240f72477366ff76 (patch) | |
| tree | d63b41a4d91ea80c594574c48fc6416d6fd9a538 /haml.html.markdown | |
| parent | 11aab085d656b79482e92a05acbbac81125bfb78 (diff) | |
| parent | 5fb5dd7c7fd7670faca6b8cfff9ef1ffdbd65c0d (diff) | |
Merge branch 'master' of https://github.com/adambard/learnxinyminutes-docs
Diffstat (limited to 'haml.html.markdown')
| -rw-r--r-- | haml.html.markdown | 33 | 
1 files changed, 29 insertions, 4 deletions
| diff --git a/haml.html.markdown b/haml.html.markdown index aed3dcae..0948e9ef 100644 --- a/haml.html.markdown +++ b/haml.html.markdown @@ -62,11 +62,11 @@ $ haml input_file.haml output_file.html  %h1 Headline copy  / To write multiline content, nest it instead -%p  +%p    This is a lot of content that we could probably split onto two    separate lines. -/  +/    You can escape html by using the ampersand and equals sign ( &= ). This    converts html-sensitive characters (&, /, :) into their html encoded    equivalents. For example @@ -102,7 +102,7 @@ $ haml input_file.haml output_file.html  / Inserting Ruby  / ------------------------------------------- -/  +/    To output a Ruby value as the contents of a tag, use an equals sign followed    by the Ruby code @@ -122,11 +122,36 @@ $ haml input_file.haml output_file.html    if book do      %p This is a book +     +/ Adding ordered / unordered list +%ul +  %li +    =item1 +    =item2  /    Again, no need to add the closing tags to the block, even for the Ruby.    Indentation will take care of that for you. +/ ------------------------------------------- +/ Inserting Table with bootstrap classes +/ ------------------------------------------- + +%table.table.table-hover +  %thead +    %tr +      %th Header 1 +      %th Header 2 +     +    %tr +      %td Value1 +      %td value2 +     +  %tfoot +    %tr +      %td +        Foot value +  / -------------------------------------------  / Inline Ruby / Ruby interpolation @@ -141,7 +166,7 @@ $ haml input_file.haml output_file.html  / -------------------------------------------  / -  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  :javascript | 
