haml-edge 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. data/EDGE_GEM_VERSION +1 -0
  2. data/FAQ +138 -0
  3. data/MIT-LICENSE +20 -0
  4. data/README.rdoc +332 -0
  5. data/REVISION +1 -0
  6. data/Rakefile +226 -0
  7. data/VERSION +1 -0
  8. data/bin/css2sass +7 -0
  9. data/bin/haml +9 -0
  10. data/bin/html2haml +7 -0
  11. data/bin/sass +8 -0
  12. data/extra/edge_gem_watch.rb +13 -0
  13. data/extra/haml-mode.el +596 -0
  14. data/extra/sass-mode.el +200 -0
  15. data/init.rb +8 -0
  16. data/lib/haml/buffer.rb +255 -0
  17. data/lib/haml/engine.rb +268 -0
  18. data/lib/haml/error.rb +22 -0
  19. data/lib/haml/exec.rb +395 -0
  20. data/lib/haml/filters.rb +275 -0
  21. data/lib/haml/helpers/action_view_extensions.rb +45 -0
  22. data/lib/haml/helpers/action_view_mods.rb +181 -0
  23. data/lib/haml/helpers.rb +488 -0
  24. data/lib/haml/html.rb +222 -0
  25. data/lib/haml/precompiler.rb +904 -0
  26. data/lib/haml/shared.rb +45 -0
  27. data/lib/haml/template/patch.rb +58 -0
  28. data/lib/haml/template/plugin.rb +72 -0
  29. data/lib/haml/template.rb +42 -0
  30. data/lib/haml/util.rb +88 -0
  31. data/lib/haml/version.rb +47 -0
  32. data/lib/haml.rb +1044 -0
  33. data/lib/sass/css.rb +388 -0
  34. data/lib/sass/engine.rb +495 -0
  35. data/lib/sass/environment.rb +46 -0
  36. data/lib/sass/error.rb +35 -0
  37. data/lib/sass/plugin/merb.rb +56 -0
  38. data/lib/sass/plugin/rails.rb +24 -0
  39. data/lib/sass/plugin.rb +204 -0
  40. data/lib/sass/repl.rb +51 -0
  41. data/lib/sass/script/bool.rb +13 -0
  42. data/lib/sass/script/color.rb +97 -0
  43. data/lib/sass/script/funcall.rb +29 -0
  44. data/lib/sass/script/functions.rb +134 -0
  45. data/lib/sass/script/lexer.rb +148 -0
  46. data/lib/sass/script/literal.rb +82 -0
  47. data/lib/sass/script/number.rb +231 -0
  48. data/lib/sass/script/operation.rb +30 -0
  49. data/lib/sass/script/parser.rb +142 -0
  50. data/lib/sass/script/string.rb +9 -0
  51. data/lib/sass/script/unary_operation.rb +21 -0
  52. data/lib/sass/script/variable.rb +20 -0
  53. data/lib/sass/script.rb +38 -0
  54. data/lib/sass/tree/attr_node.rb +64 -0
  55. data/lib/sass/tree/comment_node.rb +30 -0
  56. data/lib/sass/tree/debug_node.rb +22 -0
  57. data/lib/sass/tree/directive_node.rb +50 -0
  58. data/lib/sass/tree/file_node.rb +27 -0
  59. data/lib/sass/tree/for_node.rb +29 -0
  60. data/lib/sass/tree/if_node.rb +27 -0
  61. data/lib/sass/tree/mixin_def_node.rb +18 -0
  62. data/lib/sass/tree/mixin_node.rb +35 -0
  63. data/lib/sass/tree/node.rb +99 -0
  64. data/lib/sass/tree/rule_node.rb +161 -0
  65. data/lib/sass/tree/variable_node.rb +24 -0
  66. data/lib/sass/tree/while_node.rb +21 -0
  67. data/lib/sass.rb +1062 -0
  68. data/rails/init.rb +1 -0
  69. data/test/benchmark.rb +99 -0
  70. data/test/haml/engine_test.rb +795 -0
  71. data/test/haml/helper_test.rb +228 -0
  72. data/test/haml/html2haml_test.rb +108 -0
  73. data/test/haml/markaby/standard.mab +52 -0
  74. data/test/haml/mocks/article.rb +6 -0
  75. data/test/haml/results/content_for_layout.xhtml +15 -0
  76. data/test/haml/results/eval_suppressed.xhtml +9 -0
  77. data/test/haml/results/filters.xhtml +62 -0
  78. data/test/haml/results/helpers.xhtml +93 -0
  79. data/test/haml/results/helpful.xhtml +10 -0
  80. data/test/haml/results/just_stuff.xhtml +68 -0
  81. data/test/haml/results/list.xhtml +12 -0
  82. data/test/haml/results/nuke_inner_whitespace.xhtml +40 -0
  83. data/test/haml/results/nuke_outer_whitespace.xhtml +148 -0
  84. data/test/haml/results/original_engine.xhtml +20 -0
  85. data/test/haml/results/partial_layout.xhtml +5 -0
  86. data/test/haml/results/partials.xhtml +21 -0
  87. data/test/haml/results/render_layout.xhtml +3 -0
  88. data/test/haml/results/silent_script.xhtml +74 -0
  89. data/test/haml/results/standard.xhtml +162 -0
  90. data/test/haml/results/tag_parsing.xhtml +23 -0
  91. data/test/haml/results/very_basic.xhtml +5 -0
  92. data/test/haml/results/whitespace_handling.xhtml +89 -0
  93. data/test/haml/rhtml/_av_partial_1.rhtml +12 -0
  94. data/test/haml/rhtml/_av_partial_2.rhtml +8 -0
  95. data/test/haml/rhtml/action_view.rhtml +62 -0
  96. data/test/haml/rhtml/standard.rhtml +54 -0
  97. data/test/haml/template_test.rb +204 -0
  98. data/test/haml/templates/_av_partial_1.haml +9 -0
  99. data/test/haml/templates/_av_partial_1_ugly.haml +9 -0
  100. data/test/haml/templates/_av_partial_2.haml +5 -0
  101. data/test/haml/templates/_av_partial_2_ugly.haml +5 -0
  102. data/test/haml/templates/_layout.erb +3 -0
  103. data/test/haml/templates/_layout_for_partial.haml +3 -0
  104. data/test/haml/templates/_partial.haml +8 -0
  105. data/test/haml/templates/_text_area.haml +3 -0
  106. data/test/haml/templates/action_view.haml +47 -0
  107. data/test/haml/templates/action_view_ugly.haml +47 -0
  108. data/test/haml/templates/breakage.haml +8 -0
  109. data/test/haml/templates/content_for_layout.haml +10 -0
  110. data/test/haml/templates/eval_suppressed.haml +11 -0
  111. data/test/haml/templates/filters.haml +66 -0
  112. data/test/haml/templates/helpers.haml +95 -0
  113. data/test/haml/templates/helpful.haml +11 -0
  114. data/test/haml/templates/just_stuff.haml +83 -0
  115. data/test/haml/templates/list.haml +12 -0
  116. data/test/haml/templates/nuke_inner_whitespace.haml +32 -0
  117. data/test/haml/templates/nuke_outer_whitespace.haml +144 -0
  118. data/test/haml/templates/original_engine.haml +17 -0
  119. data/test/haml/templates/partial_layout.haml +3 -0
  120. data/test/haml/templates/partialize.haml +1 -0
  121. data/test/haml/templates/partials.haml +12 -0
  122. data/test/haml/templates/render_layout.haml +2 -0
  123. data/test/haml/templates/silent_script.haml +40 -0
  124. data/test/haml/templates/standard.haml +42 -0
  125. data/test/haml/templates/standard_ugly.haml +42 -0
  126. data/test/haml/templates/tag_parsing.haml +21 -0
  127. data/test/haml/templates/very_basic.haml +4 -0
  128. data/test/haml/templates/whitespace_handling.haml +87 -0
  129. data/test/haml/util_test.rb +87 -0
  130. data/test/linked_rails.rb +12 -0
  131. data/test/sass/css2sass_test.rb +193 -0
  132. data/test/sass/engine_test.rb +709 -0
  133. data/test/sass/functions_test.rb +109 -0
  134. data/test/sass/more_results/more1.css +9 -0
  135. data/test/sass/more_results/more1_with_line_comments.css +26 -0
  136. data/test/sass/more_results/more_import.css +29 -0
  137. data/test/sass/more_templates/_more_partial.sass +2 -0
  138. data/test/sass/more_templates/more1.sass +23 -0
  139. data/test/sass/more_templates/more_import.sass +11 -0
  140. data/test/sass/plugin_test.rb +213 -0
  141. data/test/sass/results/alt.css +4 -0
  142. data/test/sass/results/basic.css +9 -0
  143. data/test/sass/results/compact.css +5 -0
  144. data/test/sass/results/complex.css +87 -0
  145. data/test/sass/results/compressed.css +1 -0
  146. data/test/sass/results/expanded.css +19 -0
  147. data/test/sass/results/import.css +29 -0
  148. data/test/sass/results/line_numbers.css +49 -0
  149. data/test/sass/results/mixins.css +95 -0
  150. data/test/sass/results/multiline.css +24 -0
  151. data/test/sass/results/nested.css +22 -0
  152. data/test/sass/results/parent_ref.css +13 -0
  153. data/test/sass/results/script.css +16 -0
  154. data/test/sass/results/subdir/nested_subdir/nested_subdir.css +1 -0
  155. data/test/sass/results/subdir/subdir.css +3 -0
  156. data/test/sass/results/units.css +11 -0
  157. data/test/sass/script_test.rb +250 -0
  158. data/test/sass/templates/_partial.sass +2 -0
  159. data/test/sass/templates/alt.sass +16 -0
  160. data/test/sass/templates/basic.sass +23 -0
  161. data/test/sass/templates/bork.sass +2 -0
  162. data/test/sass/templates/bork2.sass +2 -0
  163. data/test/sass/templates/compact.sass +17 -0
  164. data/test/sass/templates/complex.sass +309 -0
  165. data/test/sass/templates/compressed.sass +15 -0
  166. data/test/sass/templates/expanded.sass +17 -0
  167. data/test/sass/templates/import.sass +11 -0
  168. data/test/sass/templates/importee.sass +19 -0
  169. data/test/sass/templates/line_numbers.sass +13 -0
  170. data/test/sass/templates/mixins.sass +76 -0
  171. data/test/sass/templates/multiline.sass +20 -0
  172. data/test/sass/templates/nested.sass +25 -0
  173. data/test/sass/templates/parent_ref.sass +25 -0
  174. data/test/sass/templates/script.sass +101 -0
  175. data/test/sass/templates/subdir/nested_subdir/_nested_partial.sass +2 -0
  176. data/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +3 -0
  177. data/test/sass/templates/subdir/subdir.sass +6 -0
  178. data/test/sass/templates/units.sass +11 -0
  179. data/test/test_helper.rb +21 -0
  180. metadata +278 -0
metadata ADDED
@@ -0,0 +1,278 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: haml-edge
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Nathan Weizenbaum
8
+ - Hampton Catlin
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2009-04-30 00:00:00 -04:00
14
+ default_executable:
15
+ dependencies: []
16
+
17
+ description: Haml (HTML Abstraction Markup Language) is a layer on top of XHTML or XML that's designed to express the structure of XHTML or XML documents in a non-repetitive, elegant, easy way, using indentation rather than closing tags and allowing Ruby to be embedded with ease. It was originally envisioned as a plugin for Ruby on Rails, but it can function as a stand-alone templating engine.
18
+ email: haml@googlegroups.com
19
+ executables:
20
+ - haml
21
+ - html2haml
22
+ - sass
23
+ - css2sass
24
+ extensions: []
25
+
26
+ extra_rdoc_files:
27
+ - FAQ
28
+ - MIT-LICENSE
29
+ - README.rdoc
30
+ - VERSION
31
+ - EDGE_GEM_VERSION
32
+ - REVISION
33
+ files:
34
+ - rails/init.rb
35
+ - lib/haml.rb
36
+ - lib/haml
37
+ - lib/haml/buffer.rb
38
+ - lib/haml/engine.rb
39
+ - lib/haml/error.rb
40
+ - lib/haml/exec.rb
41
+ - lib/haml/filters.rb
42
+ - lib/haml/helpers.rb
43
+ - lib/haml/helpers
44
+ - lib/haml/helpers/action_view_extensions.rb
45
+ - lib/haml/helpers/action_view_mods.rb
46
+ - lib/haml/html.rb
47
+ - lib/haml/precompiler.rb
48
+ - lib/haml/shared.rb
49
+ - lib/haml/template.rb
50
+ - lib/haml/template
51
+ - lib/haml/template/patch.rb
52
+ - lib/haml/template/plugin.rb
53
+ - lib/haml/util.rb
54
+ - lib/haml/version.rb
55
+ - lib/sass.rb
56
+ - lib/sass
57
+ - lib/sass/css.rb
58
+ - lib/sass/engine.rb
59
+ - lib/sass/environment.rb
60
+ - lib/sass/error.rb
61
+ - lib/sass/plugin.rb
62
+ - lib/sass/plugin
63
+ - lib/sass/plugin/merb.rb
64
+ - lib/sass/plugin/rails.rb
65
+ - lib/sass/repl.rb
66
+ - lib/sass/script.rb
67
+ - lib/sass/script
68
+ - lib/sass/script/bool.rb
69
+ - lib/sass/script/color.rb
70
+ - lib/sass/script/funcall.rb
71
+ - lib/sass/script/functions.rb
72
+ - lib/sass/script/lexer.rb
73
+ - lib/sass/script/literal.rb
74
+ - lib/sass/script/number.rb
75
+ - lib/sass/script/operation.rb
76
+ - lib/sass/script/parser.rb
77
+ - lib/sass/script/string.rb
78
+ - lib/sass/script/unary_operation.rb
79
+ - lib/sass/script/variable.rb
80
+ - lib/sass/tree
81
+ - lib/sass/tree/attr_node.rb
82
+ - lib/sass/tree/comment_node.rb
83
+ - lib/sass/tree/debug_node.rb
84
+ - lib/sass/tree/directive_node.rb
85
+ - lib/sass/tree/file_node.rb
86
+ - lib/sass/tree/for_node.rb
87
+ - lib/sass/tree/if_node.rb
88
+ - lib/sass/tree/mixin_def_node.rb
89
+ - lib/sass/tree/mixin_node.rb
90
+ - lib/sass/tree/node.rb
91
+ - lib/sass/tree/rule_node.rb
92
+ - lib/sass/tree/variable_node.rb
93
+ - lib/sass/tree/while_node.rb
94
+ - bin/css2sass
95
+ - bin/haml
96
+ - bin/html2haml
97
+ - bin/sass
98
+ - test/benchmark.rb
99
+ - test/haml
100
+ - test/haml/engine_test.rb
101
+ - test/haml/helper_test.rb
102
+ - test/haml/html2haml_test.rb
103
+ - test/haml/markaby
104
+ - test/haml/markaby/standard.mab
105
+ - test/haml/mocks
106
+ - test/haml/mocks/article.rb
107
+ - test/haml/results
108
+ - test/haml/results/content_for_layout.xhtml
109
+ - test/haml/results/eval_suppressed.xhtml
110
+ - test/haml/results/filters.xhtml
111
+ - test/haml/results/helpers.xhtml
112
+ - test/haml/results/helpful.xhtml
113
+ - test/haml/results/just_stuff.xhtml
114
+ - test/haml/results/list.xhtml
115
+ - test/haml/results/nuke_inner_whitespace.xhtml
116
+ - test/haml/results/nuke_outer_whitespace.xhtml
117
+ - test/haml/results/original_engine.xhtml
118
+ - test/haml/results/partial_layout.xhtml
119
+ - test/haml/results/partials.xhtml
120
+ - test/haml/results/render_layout.xhtml
121
+ - test/haml/results/silent_script.xhtml
122
+ - test/haml/results/standard.xhtml
123
+ - test/haml/results/tag_parsing.xhtml
124
+ - test/haml/results/very_basic.xhtml
125
+ - test/haml/results/whitespace_handling.xhtml
126
+ - test/haml/rhtml
127
+ - test/haml/rhtml/_av_partial_1.rhtml
128
+ - test/haml/rhtml/_av_partial_2.rhtml
129
+ - test/haml/rhtml/action_view.rhtml
130
+ - test/haml/rhtml/standard.rhtml
131
+ - test/haml/template_test.rb
132
+ - test/haml/templates
133
+ - test/haml/templates/_av_partial_1.haml
134
+ - test/haml/templates/_av_partial_1_ugly.haml
135
+ - test/haml/templates/_av_partial_2.haml
136
+ - test/haml/templates/_av_partial_2_ugly.haml
137
+ - test/haml/templates/_layout.erb
138
+ - test/haml/templates/_layout_for_partial.haml
139
+ - test/haml/templates/_partial.haml
140
+ - test/haml/templates/_text_area.haml
141
+ - test/haml/templates/action_view.haml
142
+ - test/haml/templates/action_view_ugly.haml
143
+ - test/haml/templates/breakage.haml
144
+ - test/haml/templates/content_for_layout.haml
145
+ - test/haml/templates/eval_suppressed.haml
146
+ - test/haml/templates/filters.haml
147
+ - test/haml/templates/helpers.haml
148
+ - test/haml/templates/helpful.haml
149
+ - test/haml/templates/just_stuff.haml
150
+ - test/haml/templates/list.haml
151
+ - test/haml/templates/nuke_inner_whitespace.haml
152
+ - test/haml/templates/nuke_outer_whitespace.haml
153
+ - test/haml/templates/original_engine.haml
154
+ - test/haml/templates/partial_layout.haml
155
+ - test/haml/templates/partialize.haml
156
+ - test/haml/templates/partials.haml
157
+ - test/haml/templates/render_layout.haml
158
+ - test/haml/templates/silent_script.haml
159
+ - test/haml/templates/standard.haml
160
+ - test/haml/templates/standard_ugly.haml
161
+ - test/haml/templates/tag_parsing.haml
162
+ - test/haml/templates/very_basic.haml
163
+ - test/haml/templates/whitespace_handling.haml
164
+ - test/haml/util_test.rb
165
+ - test/linked_rails.rb
166
+ - test/sass
167
+ - test/sass/css2sass_test.rb
168
+ - test/sass/engine_test.rb
169
+ - test/sass/functions_test.rb
170
+ - test/sass/more_results
171
+ - test/sass/more_results/more1.css
172
+ - test/sass/more_results/more1_with_line_comments.css
173
+ - test/sass/more_results/more_import.css
174
+ - test/sass/more_templates
175
+ - test/sass/more_templates/_more_partial.sass
176
+ - test/sass/more_templates/more1.sass
177
+ - test/sass/more_templates/more_import.sass
178
+ - test/sass/plugin_test.rb
179
+ - test/sass/results
180
+ - test/sass/results/alt.css
181
+ - test/sass/results/basic.css
182
+ - test/sass/results/compact.css
183
+ - test/sass/results/complex.css
184
+ - test/sass/results/compressed.css
185
+ - test/sass/results/expanded.css
186
+ - test/sass/results/import.css
187
+ - test/sass/results/line_numbers.css
188
+ - test/sass/results/mixins.css
189
+ - test/sass/results/multiline.css
190
+ - test/sass/results/nested.css
191
+ - test/sass/results/parent_ref.css
192
+ - test/sass/results/script.css
193
+ - test/sass/results/subdir
194
+ - test/sass/results/subdir/nested_subdir
195
+ - test/sass/results/subdir/nested_subdir/nested_subdir.css
196
+ - test/sass/results/subdir/subdir.css
197
+ - test/sass/results/units.css
198
+ - test/sass/script_test.rb
199
+ - test/sass/templates
200
+ - test/sass/templates/_partial.sass
201
+ - test/sass/templates/alt.sass
202
+ - test/sass/templates/basic.sass
203
+ - test/sass/templates/bork.sass
204
+ - test/sass/templates/bork2.sass
205
+ - test/sass/templates/compact.sass
206
+ - test/sass/templates/complex.sass
207
+ - test/sass/templates/compressed.sass
208
+ - test/sass/templates/expanded.sass
209
+ - test/sass/templates/import.sass
210
+ - test/sass/templates/importee.sass
211
+ - test/sass/templates/line_numbers.sass
212
+ - test/sass/templates/mixins.sass
213
+ - test/sass/templates/multiline.sass
214
+ - test/sass/templates/nested.sass
215
+ - test/sass/templates/parent_ref.sass
216
+ - test/sass/templates/script.sass
217
+ - test/sass/templates/subdir
218
+ - test/sass/templates/subdir/nested_subdir
219
+ - test/sass/templates/subdir/nested_subdir/_nested_partial.sass
220
+ - test/sass/templates/subdir/nested_subdir/nested_subdir.sass
221
+ - test/sass/templates/subdir/subdir.sass
222
+ - test/sass/templates/units.sass
223
+ - test/test_helper.rb
224
+ - extra/haml-mode.el
225
+ - extra/sass-mode.el
226
+ - extra/edge_gem_watch.rb
227
+ - Rakefile
228
+ - init.rb
229
+ - FAQ
230
+ - MIT-LICENSE
231
+ - README.rdoc
232
+ - VERSION
233
+ - EDGE_GEM_VERSION
234
+ - REVISION
235
+ has_rdoc: true
236
+ homepage: http://haml.hamptoncatlin.com/
237
+ post_install_message:
238
+ rdoc_options:
239
+ - --title
240
+ - Haml
241
+ - --main
242
+ - README.rdoc
243
+ - --exclude
244
+ - lib/haml/buffer.rb
245
+ - --line-numbers
246
+ - --inline-source
247
+ require_paths:
248
+ - lib
249
+ required_ruby_version: !ruby/object:Gem::Requirement
250
+ requirements:
251
+ - - ">="
252
+ - !ruby/object:Gem::Version
253
+ version: "0"
254
+ version:
255
+ required_rubygems_version: !ruby/object:Gem::Requirement
256
+ requirements:
257
+ - - ">="
258
+ - !ruby/object:Gem::Version
259
+ version: "0"
260
+ version:
261
+ requirements: []
262
+
263
+ rubyforge_project: haml
264
+ rubygems_version: 1.3.1
265
+ signing_key:
266
+ specification_version: 2
267
+ summary: An elegant, structured XHTML/XML templating engine. Comes with Sass, a similar CSS templating engine.
268
+ test_files:
269
+ - test/haml/engine_test.rb
270
+ - test/haml/helper_test.rb
271
+ - test/haml/html2haml_test.rb
272
+ - test/haml/template_test.rb
273
+ - test/haml/util_test.rb
274
+ - test/sass/css2sass_test.rb
275
+ - test/sass/engine_test.rb
276
+ - test/sass/functions_test.rb
277
+ - test/sass/plugin_test.rb
278
+ - test/sass/script_test.rb