Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 2849 Bytes
1 | = h("&&&&&&&&&&&") # This is an ActionView Helper... should load |
2 | - foo = capture do # This ActionView Helper is designed for ERB, but should work with haml |
3 | %div |
4 | %p.title Title |
5 | %p.text |
6 | Woah this is really crazy |
7 | I mean wow, |
8 | man. |
9 | - 3.times do |
10 | = foo |
11 | %p foo |
12 | - tab_up |
13 | %p reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeally loooooooooooooooooong |
14 | - tab_down |
15 | .woah |
16 | #funky |
17 | = capture_haml do |
18 | %div |
19 | %h1 Big! |
20 | %p Small |
21 | / Invisible |
22 | = capture do |
23 | .dilly |
24 | %p foo |
25 | %h1 bar |
26 | = surround '(', ')' do |
27 | %strong parentheses! |
28 | = precede '*' do |
29 | %span.small Not really |
30 | click |
31 | = succeed '.' do |
32 | %a{:href=>"thing"} here |
33 | %p baz |
34 | - haml_buffer.tabulation = 10 |
35 | %p boom |
36 | - concat "foo\n" |
37 | - haml_buffer.tabulation = 0 |
38 | -# |
39 | -# ActionPack pre-2.0 has weird url_for issues here. |
40 | - if ActionPack::VERSION::MAJOR < 2 |
41 | :plain |
42 | <p> |
43 | <form action="" method="post"> |
44 | </p> |
45 | <div> |
46 | <form action="" method="post"> |
47 | <div><input name="commit" type="submit" value="save" /></div> |
48 | <p> |
49 | @foo = |
50 | value one |
51 | </p> |
52 | Toplevel? false |
53 | <p> |
54 | @foo = |
55 | value three |
56 | </p> |
57 | </form> |
58 | <form action="" method="post"> |
59 | Title: |
60 | <input id="article_title" name="article[title]" size="30" type="text" value="Hello" /> |
61 | Body: |
62 | <input id="article_body" name="article[body]" size="30" type="text" value="World" /> |
63 | </form> |
64 | </div> |
65 | - elsif Haml::Util.ap_geq_3_beta_3? |
66 | %p |
67 | = form_tag '' |
68 | %div |
69 | = form_tag '' do |
70 | %div= submit_tag 'save' |
71 | - @foo = 'value one' |
72 | = test_partial 'partial' |
73 | = form_for @article, :as => :article, :url => '', :html => {:class => nil, :id => nil} do |f| |
74 | Title: |
75 | = f.text_field :title |
76 | Body: |
77 | = f.text_field :body |
78 | - elsif Haml::Util.ap_geq_3? |
79 | %p |
80 | = form_tag '' |
81 | %div |
82 | = form_tag '' do |
83 | %div= submit_tag 'save' |
84 | - @foo = 'value one' |
85 | = test_partial 'partial' |
86 | = form_for :article, @article, :url => '' do |f| |
87 | Title: |
88 | = f.text_field :title |
89 | Body: |
90 | = f.text_field :body |
91 | - else |
92 | %p |
93 | = form_tag '' |
94 | %div |
95 | - form_tag '' do |
96 | %div= submit_tag 'save' |
97 | - @foo = 'value one' |
98 | = test_partial 'partial' |
99 | - form_for :article, @article, :url => '' do |f| |
100 | Title: |
101 | = f.text_field :title |
102 | Body: |
103 | = f.text_field :body |
104 | = list_of({:google => 'http://www.google.com'}) do |name, link| |
105 | %a{ :href => link }= name |
106 | %p |
107 | - haml_concat "foo" |
108 | %div |
109 | - haml_concat "bar" |
110 | - haml_concat "boom" |
111 | baz |
112 | - haml_concat "boom, again" |
113 | - haml_tag :table do |
114 | - haml_tag :tr do |
115 | - haml_tag :td, {:class => 'cell'} do |
116 | - haml_tag :strong, "strong!" |
117 | - haml_concat "data" |
118 | - haml_tag :td do |
119 | - haml_concat "more_data" |
120 | - haml_tag :hr |
121 | - haml_tag :div, '' |