Sha256: 6bbbf43f795e54b94eef0c4b2be7afd75947b0d5fe79b60e6996dd4be18d443c

Contents?: true

Size: 1.49 KB

Versions: 3

Compression:

Stored size: 1.49 KB

Contents

= h("&&&&&&&&&&&") # This is an ActionView Helper... should load
- foo = capture do # This ActionView Helper is designed for ERB, but should work with haml
  %div
    %p.title Title
    %p.text
      Woah this is really crazy
      I mean wow,
      man.
- 3.times do
  = foo
%p foo
- tab_up
%p reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeally loooooooooooooooooong
- tab_down
.woah
  #funky
    = capture_haml do
      %div
        %h1 Big!
        %p Small
        / Invisible
    = capture do
      .dilly
        %p foo
        %h1 bar
  = surround '(', ')' do
    %strong parentheses!
= precede '*' do
  %span.small Not really
click
= succeed '.' do
  %a{:href=>"thing"} here
%p baz
- haml_buffer.tabulation = 10
%p boom
- concat "foo\n"
- haml_buffer.tabulation = 0
- def url_for(*stuff); stuff.join(' '); end
-# The form URLs must be empty
-# because of a weird bug that causes url_for to misbehave.
%p
  = form_tag ''
- form_tag '' do
  %div= submit_tag 'save'
  - @foo = 'value one'
  = render :partial => './partial'
- form_for :article, @article, :url => '' do |f|
  Title:
  = f.text_field :title
  Body:
  = f.text_field :body
= list_of({:google => 'http://www.google.com'}) do |name, link|
  %a{ :href => link }= name
%p
  - puts "foo"
  %div
    - puts "bar"
  - puts "boom"
  baz
  - puts "boom, again"
- haml_tag :table do
  - haml_tag :tr do
    - haml_tag :td, {:class => 'cell'} do
      - haml_tag :strong, "strong!"
      - puts "data"
    - haml_tag :td do
      - puts "more_data"
- haml_tag :hr
- haml_tag :div, ''

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
haml-1.8.2 test/haml/templates/helpers.haml
haml-2.0.0 test/haml/templates/helpers.haml
radiant-0.6.7 vendor/plugins/haml/test/haml/templates/helpers.haml