2006-10-14 23:50:07 +00:00
|
|
|
= h("&&&&&&&&&&&") # This is an ActionView Helper... should load
|
2006-12-16 23:13:01 +00:00
|
|
|
- foo = capture do # This ActionView Helper is designed for ERB, but should work with haml
|
2006-10-14 23:50:07 +00:00
|
|
|
%div
|
|
|
|
%p.title Title
|
|
|
|
%p.text
|
|
|
|
Woah this is really crazy
|
|
|
|
I mean wow,
|
|
|
|
man.
|
|
|
|
- 3.times do
|
|
|
|
= foo
|
2006-11-08 03:27:37 +00:00
|
|
|
%p foo
|
|
|
|
- tab_up
|
|
|
|
%p reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeally loooooooooooooooooong
|
|
|
|
- tab_down
|
2006-11-20 06:46:44 +00:00
|
|
|
.woah
|
|
|
|
#funky
|
|
|
|
= capture_haml do
|
|
|
|
%div
|
|
|
|
%h1 Big!
|
|
|
|
%p Small
|
|
|
|
/ Invisible
|
2006-11-21 06:29:39 +00:00
|
|
|
= capture do
|
|
|
|
.dilly
|
|
|
|
%p foo
|
|
|
|
%h1 bar
|
2006-11-20 07:03:31 +00:00
|
|
|
= surround '(', ')' do
|
|
|
|
%strong parentheses!
|
|
|
|
= precede '*' do
|
|
|
|
%span.small Not really
|
|
|
|
click
|
|
|
|
= succeed '.' do
|
|
|
|
%a{:href=>"thing"} here
|
2006-11-08 03:27:37 +00:00
|
|
|
%p baz
|
|
|
|
- buffer.tabulation = 10
|
|
|
|
%p boom
|
2006-11-14 18:35:02 +00:00
|
|
|
- concat "foo\n"
|
2006-11-28 01:44:40 +00:00
|
|
|
- buffer.tabulation = 0
|
|
|
|
= list_of({:google => 'http://www.google.com'}) do |name, link|
|
|
|
|
%a{ :href => link }= name
|