From 960ee4a1856db8eadb96277bb2422edfa8f2a81c Mon Sep 17 00:00:00 2001 From: Gabriel Halley Date: Wed, 7 Oct 2015 23:11:24 -0400 Subject: removing whitespace all over --- haml.html.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'haml.html.markdown') diff --git a/haml.html.markdown b/haml.html.markdown index aed3dcae..847714e6 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 @@ -141,7 +141,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 -- cgit v1.2.3 From bb68e9483d8be6b7ba76f93e2fcfc07fabe03293 Mon Sep 17 00:00:00 2001 From: Chashmeet Singh Date: Sat, 10 Oct 2015 14:38:50 +0530 Subject: Adding unordered/ordered list --- haml.html.markdown | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'haml.html.markdown') diff --git a/haml.html.markdown b/haml.html.markdown index 847714e6..dbc0a439 100644 --- a/haml.html.markdown +++ b/haml.html.markdown @@ -122,6 +122,12 @@ $ 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. -- cgit v1.2.3 From 091356a8da5b7dfca13075bec5089d700a1d9782 Mon Sep 17 00:00:00 2001 From: Chashmeet Singh Date: Sat, 10 Oct 2015 14:42:30 +0530 Subject: Added table implementation in ruby --- haml.html.markdown | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'haml.html.markdown') diff --git a/haml.html.markdown b/haml.html.markdown index 847714e6..d44a4728 100644 --- a/haml.html.markdown +++ b/haml.html.markdown @@ -127,6 +127,25 @@ $ haml input_file.haml output_file.html 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 -- cgit v1.2.3