spree 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. data/CHANGELOG +4 -0
  2. data/config/environment.rb +3 -3
  3. data/lib/spree.rb +1 -1
  4. data/public/stylesheets/compiled/screen.css +59 -267
  5. metadata +4 -207
  6. data/vendor/gems/haml-2.1.0/FAQ +0 -138
  7. data/vendor/gems/haml-2.1.0/MIT-LICENSE +0 -20
  8. data/vendor/gems/haml-2.1.0/README.rdoc +0 -332
  9. data/vendor/gems/haml-2.1.0/REVISION +0 -1
  10. data/vendor/gems/haml-2.1.0/Rakefile +0 -185
  11. data/vendor/gems/haml-2.1.0/VERSION +0 -1
  12. data/vendor/gems/haml-2.1.0/bin/css2sass +0 -7
  13. data/vendor/gems/haml-2.1.0/bin/haml +0 -9
  14. data/vendor/gems/haml-2.1.0/bin/html2haml +0 -7
  15. data/vendor/gems/haml-2.1.0/bin/sass +0 -8
  16. data/vendor/gems/haml-2.1.0/extra/haml-mode.el +0 -434
  17. data/vendor/gems/haml-2.1.0/extra/sass-mode.el +0 -98
  18. data/vendor/gems/haml-2.1.0/init.rb +0 -8
  19. data/vendor/gems/haml-2.1.0/lib/haml.rb +0 -1042
  20. data/vendor/gems/haml-2.1.0/lib/haml/buffer.rb +0 -255
  21. data/vendor/gems/haml-2.1.0/lib/haml/engine.rb +0 -268
  22. data/vendor/gems/haml-2.1.0/lib/haml/error.rb +0 -22
  23. data/vendor/gems/haml-2.1.0/lib/haml/exec.rb +0 -395
  24. data/vendor/gems/haml-2.1.0/lib/haml/filters.rb +0 -276
  25. data/vendor/gems/haml-2.1.0/lib/haml/helpers.rb +0 -468
  26. data/vendor/gems/haml-2.1.0/lib/haml/helpers/action_view_extensions.rb +0 -45
  27. data/vendor/gems/haml-2.1.0/lib/haml/helpers/action_view_mods.rb +0 -181
  28. data/vendor/gems/haml-2.1.0/lib/haml/html.rb +0 -218
  29. data/vendor/gems/haml-2.1.0/lib/haml/precompiler.rb +0 -889
  30. data/vendor/gems/haml-2.1.0/lib/haml/shared.rb +0 -45
  31. data/vendor/gems/haml-2.1.0/lib/haml/template.rb +0 -51
  32. data/vendor/gems/haml-2.1.0/lib/haml/template/patch.rb +0 -58
  33. data/vendor/gems/haml-2.1.0/lib/haml/template/plugin.rb +0 -72
  34. data/vendor/gems/haml-2.1.0/lib/haml/util.rb +0 -77
  35. data/vendor/gems/haml-2.1.0/lib/haml/version.rb +0 -47
  36. data/vendor/gems/haml-2.1.0/lib/sass.rb +0 -1062
  37. data/vendor/gems/haml-2.1.0/lib/sass/css.rb +0 -388
  38. data/vendor/gems/haml-2.1.0/lib/sass/engine.rb +0 -499
  39. data/vendor/gems/haml-2.1.0/lib/sass/environment.rb +0 -33
  40. data/vendor/gems/haml-2.1.0/lib/sass/error.rb +0 -35
  41. data/vendor/gems/haml-2.1.0/lib/sass/plugin.rb +0 -203
  42. data/vendor/gems/haml-2.1.0/lib/sass/plugin/merb.rb +0 -56
  43. data/vendor/gems/haml-2.1.0/lib/sass/plugin/rails.rb +0 -24
  44. data/vendor/gems/haml-2.1.0/lib/sass/repl.rb +0 -51
  45. data/vendor/gems/haml-2.1.0/lib/sass/script.rb +0 -38
  46. data/vendor/gems/haml-2.1.0/lib/sass/script/bool.rb +0 -13
  47. data/vendor/gems/haml-2.1.0/lib/sass/script/color.rb +0 -97
  48. data/vendor/gems/haml-2.1.0/lib/sass/script/funcall.rb +0 -28
  49. data/vendor/gems/haml-2.1.0/lib/sass/script/functions.rb +0 -122
  50. data/vendor/gems/haml-2.1.0/lib/sass/script/lexer.rb +0 -152
  51. data/vendor/gems/haml-2.1.0/lib/sass/script/literal.rb +0 -60
  52. data/vendor/gems/haml-2.1.0/lib/sass/script/number.rb +0 -231
  53. data/vendor/gems/haml-2.1.0/lib/sass/script/operation.rb +0 -30
  54. data/vendor/gems/haml-2.1.0/lib/sass/script/parser.rb +0 -142
  55. data/vendor/gems/haml-2.1.0/lib/sass/script/string.rb +0 -42
  56. data/vendor/gems/haml-2.1.0/lib/sass/script/unary_operation.rb +0 -21
  57. data/vendor/gems/haml-2.1.0/lib/sass/script/variable.rb +0 -20
  58. data/vendor/gems/haml-2.1.0/lib/sass/tree/attr_node.rb +0 -64
  59. data/vendor/gems/haml-2.1.0/lib/sass/tree/comment_node.rb +0 -34
  60. data/vendor/gems/haml-2.1.0/lib/sass/tree/debug_node.rb +0 -22
  61. data/vendor/gems/haml-2.1.0/lib/sass/tree/directive_node.rb +0 -50
  62. data/vendor/gems/haml-2.1.0/lib/sass/tree/file_node.rb +0 -27
  63. data/vendor/gems/haml-2.1.0/lib/sass/tree/for_node.rb +0 -29
  64. data/vendor/gems/haml-2.1.0/lib/sass/tree/if_node.rb +0 -27
  65. data/vendor/gems/haml-2.1.0/lib/sass/tree/mixin_def_node.rb +0 -18
  66. data/vendor/gems/haml-2.1.0/lib/sass/tree/mixin_node.rb +0 -34
  67. data/vendor/gems/haml-2.1.0/lib/sass/tree/node.rb +0 -99
  68. data/vendor/gems/haml-2.1.0/lib/sass/tree/rule_node.rb +0 -120
  69. data/vendor/gems/haml-2.1.0/lib/sass/tree/variable_node.rb +0 -24
  70. data/vendor/gems/haml-2.1.0/lib/sass/tree/while_node.rb +0 -20
  71. data/vendor/gems/haml-2.1.0/rails/init.rb +0 -1
  72. data/vendor/gems/haml-2.1.0/test/benchmark.rb +0 -99
  73. data/vendor/gems/haml-2.1.0/test/haml/engine_test.rb +0 -734
  74. data/vendor/gems/haml-2.1.0/test/haml/helper_test.rb +0 -224
  75. data/vendor/gems/haml-2.1.0/test/haml/html2haml_test.rb +0 -92
  76. data/vendor/gems/haml-2.1.0/test/haml/markaby/standard.mab +0 -52
  77. data/vendor/gems/haml-2.1.0/test/haml/mocks/article.rb +0 -6
  78. data/vendor/gems/haml-2.1.0/test/haml/results/content_for_layout.xhtml +0 -15
  79. data/vendor/gems/haml-2.1.0/test/haml/results/eval_suppressed.xhtml +0 -9
  80. data/vendor/gems/haml-2.1.0/test/haml/results/filters.xhtml +0 -62
  81. data/vendor/gems/haml-2.1.0/test/haml/results/helpers.xhtml +0 -93
  82. data/vendor/gems/haml-2.1.0/test/haml/results/helpful.xhtml +0 -10
  83. data/vendor/gems/haml-2.1.0/test/haml/results/just_stuff.xhtml +0 -68
  84. data/vendor/gems/haml-2.1.0/test/haml/results/list.xhtml +0 -12
  85. data/vendor/gems/haml-2.1.0/test/haml/results/nuke_inner_whitespace.xhtml +0 -40
  86. data/vendor/gems/haml-2.1.0/test/haml/results/nuke_outer_whitespace.xhtml +0 -148
  87. data/vendor/gems/haml-2.1.0/test/haml/results/original_engine.xhtml +0 -20
  88. data/vendor/gems/haml-2.1.0/test/haml/results/partial_layout.xhtml +0 -5
  89. data/vendor/gems/haml-2.1.0/test/haml/results/partials.xhtml +0 -21
  90. data/vendor/gems/haml-2.1.0/test/haml/results/render_layout.xhtml +0 -3
  91. data/vendor/gems/haml-2.1.0/test/haml/results/silent_script.xhtml +0 -74
  92. data/vendor/gems/haml-2.1.0/test/haml/results/standard.xhtml +0 -42
  93. data/vendor/gems/haml-2.1.0/test/haml/results/tag_parsing.xhtml +0 -23
  94. data/vendor/gems/haml-2.1.0/test/haml/results/very_basic.xhtml +0 -5
  95. data/vendor/gems/haml-2.1.0/test/haml/results/whitespace_handling.xhtml +0 -89
  96. data/vendor/gems/haml-2.1.0/test/haml/rhtml/_av_partial_1.rhtml +0 -12
  97. data/vendor/gems/haml-2.1.0/test/haml/rhtml/_av_partial_2.rhtml +0 -8
  98. data/vendor/gems/haml-2.1.0/test/haml/rhtml/action_view.rhtml +0 -62
  99. data/vendor/gems/haml-2.1.0/test/haml/rhtml/standard.rhtml +0 -54
  100. data/vendor/gems/haml-2.1.0/test/haml/template_test.rb +0 -204
  101. data/vendor/gems/haml-2.1.0/test/haml/templates/_av_partial_1.haml +0 -9
  102. data/vendor/gems/haml-2.1.0/test/haml/templates/_av_partial_1_ugly.haml +0 -9
  103. data/vendor/gems/haml-2.1.0/test/haml/templates/_av_partial_2.haml +0 -5
  104. data/vendor/gems/haml-2.1.0/test/haml/templates/_av_partial_2_ugly.haml +0 -5
  105. data/vendor/gems/haml-2.1.0/test/haml/templates/_layout.erb +0 -3
  106. data/vendor/gems/haml-2.1.0/test/haml/templates/_layout_for_partial.haml +0 -3
  107. data/vendor/gems/haml-2.1.0/test/haml/templates/_partial.haml +0 -8
  108. data/vendor/gems/haml-2.1.0/test/haml/templates/_text_area.haml +0 -3
  109. data/vendor/gems/haml-2.1.0/test/haml/templates/action_view.haml +0 -47
  110. data/vendor/gems/haml-2.1.0/test/haml/templates/action_view_ugly.haml +0 -47
  111. data/vendor/gems/haml-2.1.0/test/haml/templates/breakage.haml +0 -8
  112. data/vendor/gems/haml-2.1.0/test/haml/templates/content_for_layout.haml +0 -10
  113. data/vendor/gems/haml-2.1.0/test/haml/templates/eval_suppressed.haml +0 -11
  114. data/vendor/gems/haml-2.1.0/test/haml/templates/filters.haml +0 -66
  115. data/vendor/gems/haml-2.1.0/test/haml/templates/helpers.haml +0 -95
  116. data/vendor/gems/haml-2.1.0/test/haml/templates/helpful.haml +0 -11
  117. data/vendor/gems/haml-2.1.0/test/haml/templates/just_stuff.haml +0 -83
  118. data/vendor/gems/haml-2.1.0/test/haml/templates/list.haml +0 -12
  119. data/vendor/gems/haml-2.1.0/test/haml/templates/nuke_inner_whitespace.haml +0 -32
  120. data/vendor/gems/haml-2.1.0/test/haml/templates/nuke_outer_whitespace.haml +0 -144
  121. data/vendor/gems/haml-2.1.0/test/haml/templates/original_engine.haml +0 -17
  122. data/vendor/gems/haml-2.1.0/test/haml/templates/partial_layout.haml +0 -3
  123. data/vendor/gems/haml-2.1.0/test/haml/templates/partialize.haml +0 -1
  124. data/vendor/gems/haml-2.1.0/test/haml/templates/partials.haml +0 -12
  125. data/vendor/gems/haml-2.1.0/test/haml/templates/render_layout.haml +0 -2
  126. data/vendor/gems/haml-2.1.0/test/haml/templates/silent_script.haml +0 -40
  127. data/vendor/gems/haml-2.1.0/test/haml/templates/standard.haml +0 -42
  128. data/vendor/gems/haml-2.1.0/test/haml/templates/standard_ugly.haml +0 -42
  129. data/vendor/gems/haml-2.1.0/test/haml/templates/tag_parsing.haml +0 -21
  130. data/vendor/gems/haml-2.1.0/test/haml/templates/very_basic.haml +0 -4
  131. data/vendor/gems/haml-2.1.0/test/haml/templates/whitespace_handling.haml +0 -87
  132. data/vendor/gems/haml-2.1.0/test/linked_rails.rb +0 -12
  133. data/vendor/gems/haml-2.1.0/test/sass/css2sass_test.rb +0 -193
  134. data/vendor/gems/haml-2.1.0/test/sass/engine_test.rb +0 -769
  135. data/vendor/gems/haml-2.1.0/test/sass/functions_test.rb +0 -96
  136. data/vendor/gems/haml-2.1.0/test/sass/more_results/more1.css +0 -9
  137. data/vendor/gems/haml-2.1.0/test/sass/more_results/more1_with_line_comments.css +0 -26
  138. data/vendor/gems/haml-2.1.0/test/sass/more_results/more_import.css +0 -29
  139. data/vendor/gems/haml-2.1.0/test/sass/more_templates/_more_partial.sass +0 -2
  140. data/vendor/gems/haml-2.1.0/test/sass/more_templates/more1.sass +0 -23
  141. data/vendor/gems/haml-2.1.0/test/sass/more_templates/more_import.sass +0 -11
  142. data/vendor/gems/haml-2.1.0/test/sass/plugin_test.rb +0 -208
  143. data/vendor/gems/haml-2.1.0/test/sass/results/alt.css +0 -4
  144. data/vendor/gems/haml-2.1.0/test/sass/results/basic.css +0 -9
  145. data/vendor/gems/haml-2.1.0/test/sass/results/compact.css +0 -5
  146. data/vendor/gems/haml-2.1.0/test/sass/results/complex.css +0 -87
  147. data/vendor/gems/haml-2.1.0/test/sass/results/compressed.css +0 -1
  148. data/vendor/gems/haml-2.1.0/test/sass/results/expanded.css +0 -19
  149. data/vendor/gems/haml-2.1.0/test/sass/results/import.css +0 -29
  150. data/vendor/gems/haml-2.1.0/test/sass/results/line_numbers.css +0 -49
  151. data/vendor/gems/haml-2.1.0/test/sass/results/mixins.css +0 -95
  152. data/vendor/gems/haml-2.1.0/test/sass/results/multiline.css +0 -24
  153. data/vendor/gems/haml-2.1.0/test/sass/results/nested.css +0 -22
  154. data/vendor/gems/haml-2.1.0/test/sass/results/parent_ref.css +0 -13
  155. data/vendor/gems/haml-2.1.0/test/sass/results/script.css +0 -16
  156. data/vendor/gems/haml-2.1.0/test/sass/results/subdir/nested_subdir/nested_subdir.css +0 -1
  157. data/vendor/gems/haml-2.1.0/test/sass/results/subdir/subdir.css +0 -3
  158. data/vendor/gems/haml-2.1.0/test/sass/results/units.css +0 -11
  159. data/vendor/gems/haml-2.1.0/test/sass/script_test.rb +0 -153
  160. data/vendor/gems/haml-2.1.0/test/sass/templates/_partial.sass +0 -2
  161. data/vendor/gems/haml-2.1.0/test/sass/templates/alt.sass +0 -16
  162. data/vendor/gems/haml-2.1.0/test/sass/templates/basic.sass +0 -23
  163. data/vendor/gems/haml-2.1.0/test/sass/templates/bork.sass +0 -2
  164. data/vendor/gems/haml-2.1.0/test/sass/templates/bork2.sass +0 -2
  165. data/vendor/gems/haml-2.1.0/test/sass/templates/compact.sass +0 -17
  166. data/vendor/gems/haml-2.1.0/test/sass/templates/complex.sass +0 -309
  167. data/vendor/gems/haml-2.1.0/test/sass/templates/compressed.sass +0 -15
  168. data/vendor/gems/haml-2.1.0/test/sass/templates/expanded.sass +0 -17
  169. data/vendor/gems/haml-2.1.0/test/sass/templates/import.sass +0 -11
  170. data/vendor/gems/haml-2.1.0/test/sass/templates/importee.sass +0 -19
  171. data/vendor/gems/haml-2.1.0/test/sass/templates/line_numbers.sass +0 -13
  172. data/vendor/gems/haml-2.1.0/test/sass/templates/mixins.sass +0 -76
  173. data/vendor/gems/haml-2.1.0/test/sass/templates/multiline.sass +0 -20
  174. data/vendor/gems/haml-2.1.0/test/sass/templates/nested.sass +0 -25
  175. data/vendor/gems/haml-2.1.0/test/sass/templates/parent_ref.sass +0 -25
  176. data/vendor/gems/haml-2.1.0/test/sass/templates/script.sass +0 -101
  177. data/vendor/gems/haml-2.1.0/test/sass/templates/subdir/nested_subdir/_nested_partial.sass +0 -2
  178. data/vendor/gems/haml-2.1.0/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +0 -3
  179. data/vendor/gems/haml-2.1.0/test/sass/templates/subdir/subdir.sass +0 -6
  180. data/vendor/gems/haml-2.1.0/test/sass/templates/units.sass +0 -11
  181. data/vendor/gems/haml-2.1.0/test/test_helper.rb +0 -21
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-03 00:00:00 -04:00
12
+ date: 2009-05-08 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -2050,211 +2050,6 @@ files:
2050
2050
  - vendor/extensions/tax_calculator/spec/spec.opts
2051
2051
  - vendor/extensions/tax_calculator/spec/spec_helper.rb
2052
2052
  - vendor/extensions/tax_calculator/tax_calculator_extension.rb
2053
- - vendor/gems
2054
- - vendor/gems/haml-2.1.0
2055
- - vendor/gems/haml-2.1.0/bin
2056
- - vendor/gems/haml-2.1.0/bin/css2sass
2057
- - vendor/gems/haml-2.1.0/bin/haml
2058
- - vendor/gems/haml-2.1.0/bin/html2haml
2059
- - vendor/gems/haml-2.1.0/bin/sass
2060
- - vendor/gems/haml-2.1.0/extra
2061
- - vendor/gems/haml-2.1.0/extra/haml-mode.el
2062
- - vendor/gems/haml-2.1.0/extra/sass-mode.el
2063
- - vendor/gems/haml-2.1.0/FAQ
2064
- - vendor/gems/haml-2.1.0/init.rb
2065
- - vendor/gems/haml-2.1.0/lib
2066
- - vendor/gems/haml-2.1.0/lib/haml
2067
- - vendor/gems/haml-2.1.0/lib/haml/buffer.rb
2068
- - vendor/gems/haml-2.1.0/lib/haml/engine.rb
2069
- - vendor/gems/haml-2.1.0/lib/haml/error.rb
2070
- - vendor/gems/haml-2.1.0/lib/haml/exec.rb
2071
- - vendor/gems/haml-2.1.0/lib/haml/filters.rb
2072
- - vendor/gems/haml-2.1.0/lib/haml/helpers
2073
- - vendor/gems/haml-2.1.0/lib/haml/helpers/action_view_extensions.rb
2074
- - vendor/gems/haml-2.1.0/lib/haml/helpers/action_view_mods.rb
2075
- - vendor/gems/haml-2.1.0/lib/haml/helpers.rb
2076
- - vendor/gems/haml-2.1.0/lib/haml/html.rb
2077
- - vendor/gems/haml-2.1.0/lib/haml/precompiler.rb
2078
- - vendor/gems/haml-2.1.0/lib/haml/shared.rb
2079
- - vendor/gems/haml-2.1.0/lib/haml/template
2080
- - vendor/gems/haml-2.1.0/lib/haml/template/patch.rb
2081
- - vendor/gems/haml-2.1.0/lib/haml/template/plugin.rb
2082
- - vendor/gems/haml-2.1.0/lib/haml/template.rb
2083
- - vendor/gems/haml-2.1.0/lib/haml/util.rb
2084
- - vendor/gems/haml-2.1.0/lib/haml/version.rb
2085
- - vendor/gems/haml-2.1.0/lib/haml.rb
2086
- - vendor/gems/haml-2.1.0/lib/sass
2087
- - vendor/gems/haml-2.1.0/lib/sass/css.rb
2088
- - vendor/gems/haml-2.1.0/lib/sass/engine.rb
2089
- - vendor/gems/haml-2.1.0/lib/sass/environment.rb
2090
- - vendor/gems/haml-2.1.0/lib/sass/error.rb
2091
- - vendor/gems/haml-2.1.0/lib/sass/plugin
2092
- - vendor/gems/haml-2.1.0/lib/sass/plugin/merb.rb
2093
- - vendor/gems/haml-2.1.0/lib/sass/plugin/rails.rb
2094
- - vendor/gems/haml-2.1.0/lib/sass/plugin.rb
2095
- - vendor/gems/haml-2.1.0/lib/sass/repl.rb
2096
- - vendor/gems/haml-2.1.0/lib/sass/script
2097
- - vendor/gems/haml-2.1.0/lib/sass/script/bool.rb
2098
- - vendor/gems/haml-2.1.0/lib/sass/script/color.rb
2099
- - vendor/gems/haml-2.1.0/lib/sass/script/funcall.rb
2100
- - vendor/gems/haml-2.1.0/lib/sass/script/functions.rb
2101
- - vendor/gems/haml-2.1.0/lib/sass/script/lexer.rb
2102
- - vendor/gems/haml-2.1.0/lib/sass/script/literal.rb
2103
- - vendor/gems/haml-2.1.0/lib/sass/script/number.rb
2104
- - vendor/gems/haml-2.1.0/lib/sass/script/operation.rb
2105
- - vendor/gems/haml-2.1.0/lib/sass/script/parser.rb
2106
- - vendor/gems/haml-2.1.0/lib/sass/script/string.rb
2107
- - vendor/gems/haml-2.1.0/lib/sass/script/unary_operation.rb
2108
- - vendor/gems/haml-2.1.0/lib/sass/script/variable.rb
2109
- - vendor/gems/haml-2.1.0/lib/sass/script.rb
2110
- - vendor/gems/haml-2.1.0/lib/sass/tree
2111
- - vendor/gems/haml-2.1.0/lib/sass/tree/attr_node.rb
2112
- - vendor/gems/haml-2.1.0/lib/sass/tree/comment_node.rb
2113
- - vendor/gems/haml-2.1.0/lib/sass/tree/debug_node.rb
2114
- - vendor/gems/haml-2.1.0/lib/sass/tree/directive_node.rb
2115
- - vendor/gems/haml-2.1.0/lib/sass/tree/file_node.rb
2116
- - vendor/gems/haml-2.1.0/lib/sass/tree/for_node.rb
2117
- - vendor/gems/haml-2.1.0/lib/sass/tree/if_node.rb
2118
- - vendor/gems/haml-2.1.0/lib/sass/tree/mixin_def_node.rb
2119
- - vendor/gems/haml-2.1.0/lib/sass/tree/mixin_node.rb
2120
- - vendor/gems/haml-2.1.0/lib/sass/tree/node.rb
2121
- - vendor/gems/haml-2.1.0/lib/sass/tree/rule_node.rb
2122
- - vendor/gems/haml-2.1.0/lib/sass/tree/variable_node.rb
2123
- - vendor/gems/haml-2.1.0/lib/sass/tree/while_node.rb
2124
- - vendor/gems/haml-2.1.0/lib/sass.rb
2125
- - vendor/gems/haml-2.1.0/MIT-LICENSE
2126
- - vendor/gems/haml-2.1.0/rails
2127
- - vendor/gems/haml-2.1.0/rails/init.rb
2128
- - vendor/gems/haml-2.1.0/Rakefile
2129
- - vendor/gems/haml-2.1.0/README.rdoc
2130
- - vendor/gems/haml-2.1.0/REVISION
2131
- - vendor/gems/haml-2.1.0/test
2132
- - vendor/gems/haml-2.1.0/test/benchmark.rb
2133
- - vendor/gems/haml-2.1.0/test/haml
2134
- - vendor/gems/haml-2.1.0/test/haml/engine_test.rb
2135
- - vendor/gems/haml-2.1.0/test/haml/helper_test.rb
2136
- - vendor/gems/haml-2.1.0/test/haml/html2haml_test.rb
2137
- - vendor/gems/haml-2.1.0/test/haml/markaby
2138
- - vendor/gems/haml-2.1.0/test/haml/markaby/standard.mab
2139
- - vendor/gems/haml-2.1.0/test/haml/mocks
2140
- - vendor/gems/haml-2.1.0/test/haml/mocks/article.rb
2141
- - vendor/gems/haml-2.1.0/test/haml/results
2142
- - vendor/gems/haml-2.1.0/test/haml/results/content_for_layout.xhtml
2143
- - vendor/gems/haml-2.1.0/test/haml/results/eval_suppressed.xhtml
2144
- - vendor/gems/haml-2.1.0/test/haml/results/filters.xhtml
2145
- - vendor/gems/haml-2.1.0/test/haml/results/helpers.xhtml
2146
- - vendor/gems/haml-2.1.0/test/haml/results/helpful.xhtml
2147
- - vendor/gems/haml-2.1.0/test/haml/results/just_stuff.xhtml
2148
- - vendor/gems/haml-2.1.0/test/haml/results/list.xhtml
2149
- - vendor/gems/haml-2.1.0/test/haml/results/nuke_inner_whitespace.xhtml
2150
- - vendor/gems/haml-2.1.0/test/haml/results/nuke_outer_whitespace.xhtml
2151
- - vendor/gems/haml-2.1.0/test/haml/results/original_engine.xhtml
2152
- - vendor/gems/haml-2.1.0/test/haml/results/partial_layout.xhtml
2153
- - vendor/gems/haml-2.1.0/test/haml/results/partials.xhtml
2154
- - vendor/gems/haml-2.1.0/test/haml/results/render_layout.xhtml
2155
- - vendor/gems/haml-2.1.0/test/haml/results/silent_script.xhtml
2156
- - vendor/gems/haml-2.1.0/test/haml/results/standard.xhtml
2157
- - vendor/gems/haml-2.1.0/test/haml/results/tag_parsing.xhtml
2158
- - vendor/gems/haml-2.1.0/test/haml/results/very_basic.xhtml
2159
- - vendor/gems/haml-2.1.0/test/haml/results/whitespace_handling.xhtml
2160
- - vendor/gems/haml-2.1.0/test/haml/rhtml
2161
- - vendor/gems/haml-2.1.0/test/haml/rhtml/_av_partial_1.rhtml
2162
- - vendor/gems/haml-2.1.0/test/haml/rhtml/_av_partial_2.rhtml
2163
- - vendor/gems/haml-2.1.0/test/haml/rhtml/action_view.rhtml
2164
- - vendor/gems/haml-2.1.0/test/haml/rhtml/standard.rhtml
2165
- - vendor/gems/haml-2.1.0/test/haml/template_test.rb
2166
- - vendor/gems/haml-2.1.0/test/haml/templates
2167
- - vendor/gems/haml-2.1.0/test/haml/templates/_av_partial_1.haml
2168
- - vendor/gems/haml-2.1.0/test/haml/templates/_av_partial_1_ugly.haml
2169
- - vendor/gems/haml-2.1.0/test/haml/templates/_av_partial_2.haml
2170
- - vendor/gems/haml-2.1.0/test/haml/templates/_av_partial_2_ugly.haml
2171
- - vendor/gems/haml-2.1.0/test/haml/templates/_layout.erb
2172
- - vendor/gems/haml-2.1.0/test/haml/templates/_layout_for_partial.haml
2173
- - vendor/gems/haml-2.1.0/test/haml/templates/_partial.haml
2174
- - vendor/gems/haml-2.1.0/test/haml/templates/_text_area.haml
2175
- - vendor/gems/haml-2.1.0/test/haml/templates/action_view.haml
2176
- - vendor/gems/haml-2.1.0/test/haml/templates/action_view_ugly.haml
2177
- - vendor/gems/haml-2.1.0/test/haml/templates/breakage.haml
2178
- - vendor/gems/haml-2.1.0/test/haml/templates/content_for_layout.haml
2179
- - vendor/gems/haml-2.1.0/test/haml/templates/eval_suppressed.haml
2180
- - vendor/gems/haml-2.1.0/test/haml/templates/filters.haml
2181
- - vendor/gems/haml-2.1.0/test/haml/templates/helpers.haml
2182
- - vendor/gems/haml-2.1.0/test/haml/templates/helpful.haml
2183
- - vendor/gems/haml-2.1.0/test/haml/templates/just_stuff.haml
2184
- - vendor/gems/haml-2.1.0/test/haml/templates/list.haml
2185
- - vendor/gems/haml-2.1.0/test/haml/templates/nuke_inner_whitespace.haml
2186
- - vendor/gems/haml-2.1.0/test/haml/templates/nuke_outer_whitespace.haml
2187
- - vendor/gems/haml-2.1.0/test/haml/templates/original_engine.haml
2188
- - vendor/gems/haml-2.1.0/test/haml/templates/partial_layout.haml
2189
- - vendor/gems/haml-2.1.0/test/haml/templates/partialize.haml
2190
- - vendor/gems/haml-2.1.0/test/haml/templates/partials.haml
2191
- - vendor/gems/haml-2.1.0/test/haml/templates/render_layout.haml
2192
- - vendor/gems/haml-2.1.0/test/haml/templates/silent_script.haml
2193
- - vendor/gems/haml-2.1.0/test/haml/templates/standard.haml
2194
- - vendor/gems/haml-2.1.0/test/haml/templates/standard_ugly.haml
2195
- - vendor/gems/haml-2.1.0/test/haml/templates/tag_parsing.haml
2196
- - vendor/gems/haml-2.1.0/test/haml/templates/very_basic.haml
2197
- - vendor/gems/haml-2.1.0/test/haml/templates/whitespace_handling.haml
2198
- - vendor/gems/haml-2.1.0/test/linked_rails.rb
2199
- - vendor/gems/haml-2.1.0/test/sass
2200
- - vendor/gems/haml-2.1.0/test/sass/css2sass_test.rb
2201
- - vendor/gems/haml-2.1.0/test/sass/engine_test.rb
2202
- - vendor/gems/haml-2.1.0/test/sass/functions_test.rb
2203
- - vendor/gems/haml-2.1.0/test/sass/more_results
2204
- - vendor/gems/haml-2.1.0/test/sass/more_results/more1.css
2205
- - vendor/gems/haml-2.1.0/test/sass/more_results/more1_with_line_comments.css
2206
- - vendor/gems/haml-2.1.0/test/sass/more_results/more_import.css
2207
- - vendor/gems/haml-2.1.0/test/sass/more_templates
2208
- - vendor/gems/haml-2.1.0/test/sass/more_templates/_more_partial.sass
2209
- - vendor/gems/haml-2.1.0/test/sass/more_templates/more1.sass
2210
- - vendor/gems/haml-2.1.0/test/sass/more_templates/more_import.sass
2211
- - vendor/gems/haml-2.1.0/test/sass/plugin_test.rb
2212
- - vendor/gems/haml-2.1.0/test/sass/results
2213
- - vendor/gems/haml-2.1.0/test/sass/results/alt.css
2214
- - vendor/gems/haml-2.1.0/test/sass/results/basic.css
2215
- - vendor/gems/haml-2.1.0/test/sass/results/compact.css
2216
- - vendor/gems/haml-2.1.0/test/sass/results/complex.css
2217
- - vendor/gems/haml-2.1.0/test/sass/results/compressed.css
2218
- - vendor/gems/haml-2.1.0/test/sass/results/expanded.css
2219
- - vendor/gems/haml-2.1.0/test/sass/results/import.css
2220
- - vendor/gems/haml-2.1.0/test/sass/results/line_numbers.css
2221
- - vendor/gems/haml-2.1.0/test/sass/results/mixins.css
2222
- - vendor/gems/haml-2.1.0/test/sass/results/multiline.css
2223
- - vendor/gems/haml-2.1.0/test/sass/results/nested.css
2224
- - vendor/gems/haml-2.1.0/test/sass/results/parent_ref.css
2225
- - vendor/gems/haml-2.1.0/test/sass/results/script.css
2226
- - vendor/gems/haml-2.1.0/test/sass/results/subdir
2227
- - vendor/gems/haml-2.1.0/test/sass/results/subdir/nested_subdir
2228
- - vendor/gems/haml-2.1.0/test/sass/results/subdir/nested_subdir/nested_subdir.css
2229
- - vendor/gems/haml-2.1.0/test/sass/results/subdir/subdir.css
2230
- - vendor/gems/haml-2.1.0/test/sass/results/units.css
2231
- - vendor/gems/haml-2.1.0/test/sass/script_test.rb
2232
- - vendor/gems/haml-2.1.0/test/sass/templates
2233
- - vendor/gems/haml-2.1.0/test/sass/templates/_partial.sass
2234
- - vendor/gems/haml-2.1.0/test/sass/templates/alt.sass
2235
- - vendor/gems/haml-2.1.0/test/sass/templates/basic.sass
2236
- - vendor/gems/haml-2.1.0/test/sass/templates/bork.sass
2237
- - vendor/gems/haml-2.1.0/test/sass/templates/bork2.sass
2238
- - vendor/gems/haml-2.1.0/test/sass/templates/compact.sass
2239
- - vendor/gems/haml-2.1.0/test/sass/templates/complex.sass
2240
- - vendor/gems/haml-2.1.0/test/sass/templates/compressed.sass
2241
- - vendor/gems/haml-2.1.0/test/sass/templates/expanded.sass
2242
- - vendor/gems/haml-2.1.0/test/sass/templates/import.sass
2243
- - vendor/gems/haml-2.1.0/test/sass/templates/importee.sass
2244
- - vendor/gems/haml-2.1.0/test/sass/templates/line_numbers.sass
2245
- - vendor/gems/haml-2.1.0/test/sass/templates/mixins.sass
2246
- - vendor/gems/haml-2.1.0/test/sass/templates/multiline.sass
2247
- - vendor/gems/haml-2.1.0/test/sass/templates/nested.sass
2248
- - vendor/gems/haml-2.1.0/test/sass/templates/parent_ref.sass
2249
- - vendor/gems/haml-2.1.0/test/sass/templates/script.sass
2250
- - vendor/gems/haml-2.1.0/test/sass/templates/subdir
2251
- - vendor/gems/haml-2.1.0/test/sass/templates/subdir/nested_subdir
2252
- - vendor/gems/haml-2.1.0/test/sass/templates/subdir/nested_subdir/_nested_partial.sass
2253
- - vendor/gems/haml-2.1.0/test/sass/templates/subdir/nested_subdir/nested_subdir.sass
2254
- - vendor/gems/haml-2.1.0/test/sass/templates/subdir/subdir.sass
2255
- - vendor/gems/haml-2.1.0/test/sass/templates/units.sass
2256
- - vendor/gems/haml-2.1.0/test/test_helper.rb
2257
- - vendor/gems/haml-2.1.0/VERSION
2258
2053
  - vendor/plugins
2259
2054
  - vendor/plugins/acts_as_adjacency_list
2260
2055
  - vendor/plugins/acts_as_adjacency_list/init.rb
@@ -3444,6 +3239,8 @@ rdoc_options:
3444
3239
  - --exclude
3445
3240
  - log
3446
3241
  - --exclude
3242
+ - pkg
3243
+ - --exclude
3447
3244
  - public
3448
3245
  - --exclude
3449
3246
  - script
@@ -1,138 +0,0 @@
1
- = Frequently Asked Questions
2
-
3
- == Haml
4
-
5
- === How do I put a punctuation mark after an element, like "<tt>I like <strong>cake</strong>!</tt>"?
6
-
7
- Expressing the structure of a document
8
- and expressing inline formatting are two very different problems.
9
- Haml is mostly designed for structure,
10
- so the best way to deal with formatting is to leave it to other languages
11
- that are designed for it.
12
- You could use Textile:
13
-
14
- %p
15
- :textile
16
- I like *cake*!
17
-
18
- or Markdown:
19
-
20
- %p
21
- :markdown
22
- I like **cake**!
23
-
24
- or plain old XHTML:
25
-
26
- %p I like <strong>cake</strong>!
27
-
28
- If you're inserting something that's generated by a helper, like a link,
29
- then it's even easier:
30
-
31
- %p== I like #{link_to 'chocolate', 'http://franschocolates.com'}!
32
-
33
- === How do I stop Haml from indenting the contents of my +pre+ and +textarea+ tags?
34
-
35
- Because Haml automatically indents the HTML source code,
36
- the contents of whitespace-sensitive tags like +pre+ and +textarea+
37
- can get screwed up.
38
- The solution is to replace the newlines inside these tags
39
- with HTML newline entities (<tt>&#x000A;</tt>),
40
- which Haml does using the Haml::Helpers#preserve and Haml::Helpers#find_and_preserve helpers.
41
-
42
- Normally, Haml will do this for you automatically
43
- when you're using a tag that needs it
44
- (this can be customized using the <tt>:preserve</tt> option;
45
- see the Options section of the {Haml reference}(../classes/Haml.html)).
46
- For example,
47
-
48
- %p
49
- %textarea= "Foo\nBar"
50
-
51
- will be compiled to
52
-
53
- <p>
54
- <textarea>Foo&#x000A;Bar</textarea>
55
- </p>
56
-
57
- However, if a helper is generating the tag,
58
- Haml can't detect that and so you'll have to call +find_and_preserve+ yourself.
59
- You can also use <tt>~</tt>, which is the same as <tt>=</tt>
60
- except that it automatically runs +find_and_preserve+ on its input.
61
- For example:
62
-
63
- %p= find_and_preserve "<textarea>Foo\nBar</textarea>"
64
-
65
- is the same as
66
-
67
- %p~ "<textarea>Foo\nBar</textarea>"
68
-
69
- and renders
70
-
71
- <p><textarea>Foo&#x000A;Bar</textarea></p>
72
-
73
- === How do I make my long lines of Ruby code look nicer in my Haml document?
74
-
75
- Put them in a helper or your model.
76
-
77
- Haml purposefully makes it annoying to put lots of Ruby code into your templates,
78
- because lots of code doesn't belong in the view.
79
- If you take that huge +link_to_remote+ call
80
- and move it to a +update_sidebar_link+ helper,
81
- it'll make your view both easier to read and more semantic.
82
-
83
- If you absolutely must put lots of code in your template,
84
- Haml offers a somewhat awkward multiline-continuation tool.
85
- Put a <tt>|</tt> (pipe character) at the end of each line you want to be merged into one
86
- (including the last line!).
87
- For example:
88
-
89
- %p= @this.is(way.too.much). |
90
- code("and I should"). |
91
- really_move.it.into( |
92
- :a => @helper) |
93
-
94
- === I have Haml installed. Why is Rails (only looking for <tt>.html.erb</tt> files | rendering Haml files as plain text | rendering Haml files as blank pages)?
95
-
96
- There are several reasons these things might be happening.
97
- First of all, make sure vendor/plugins/haml really exists
98
- and has an init.rb file in there.
99
- Then try restarting Mongrel or WEBrick or whatever you might be using.
100
-
101
- Finally, if none of these work,
102
- chances are you've got some localization plugin like Globalize installed.
103
- Such plugins often don't play nicely with Haml.
104
- Luckily, there's usually an easy fix.
105
- For Globalize, just edit globalize/lib/globalize/rails/action_view.rb
106
- and change
107
-
108
- @@re_extension = /\.(rjs|rhtml|rxml)$/
109
-
110
- to
111
-
112
- @@re_extension = /\.(rjs|rhtml|rxml|erb|builder|haml)$/
113
-
114
- For other plugins, a little searching will probably turn up a way to fix them as well.
115
-
116
- == Sass
117
-
118
- === Can I use a variable from my controller in my Sass file?
119
-
120
- No. Sass files aren't views.
121
- They're compiled once into static CSS files,
122
- then left along until they're changed and need to be compiled again.
123
- Not only don't you want to be running a full request cycle
124
- every time someone requests a stylesheet,
125
- but it's not a great idea to put much logic in there anyway
126
- due to how browsers handle them.
127
-
128
- If you really need some sort of dynamic CSS,
129
- the best thing to do is put only the snippet you need to dynamically set
130
- in the +head+ of your HTML document.
131
-
132
- == You still haven't answered my question!
133
-
134
- Sorry! Try looking at the Haml or Sass references,
135
- in the doucmentation for the haml and Sass modules, respectively.
136
- If you can't find an answer there,
137
- feel free to ask in #haml on irc.freenode.net
138
- or send an email to the {mailing list}[http://groups.google.com/group/haml?hl=en].
@@ -1,20 +0,0 @@
1
- Copyright (c) 2006-2008 Hampton Catlin
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,332 +0,0 @@
1
- = Haml and Sass
2
-
3
- Haml and Sass are templating engines
4
- for the two most common types of documents on the web:
5
- HTML and CSS, respectively.
6
- They are designed to make it both easier and more pleasant
7
- to code HTML and CSS documents,
8
- by eliminating redundancy,
9
- reflecting the underlying structure that the document represents,
10
- and providing elegant, easily understandable, and powerful syntax.
11
-
12
- == Using
13
-
14
- There are several ways to use Haml and Sass.
15
- They can be used as a plugin for Rails or Merb,
16
- or embedded on their own in other applications.
17
- The first step of all of these is to install the Haml gem:
18
-
19
- gem install haml
20
-
21
- To install Haml and Sass as a Rails plugin,
22
- just run <tt>haml --rails path/to/rails/app</tt>
23
- and both Haml and Sass will be installed.
24
- Views with the <tt>.haml</tt> (or <tt>.html.haml</tt> for edge)
25
- extension will automatically use Haml.
26
- Sass is a little more complicated;
27
- <tt>.sass</tt> files should be placed in public/stylesheets/sass,
28
- where they'll be automatically compiled
29
- to corresponding CSS files in public/stylesheets when needed
30
- (the Sass template directory is customizable...
31
- see the Sass module docs for details).
32
-
33
- For Merb, <tt>.html.haml</tt> views will work without any further modification.
34
- To enable Sass, you also need to add a dependency.
35
- To do so, just add
36
-
37
- dependency "merb-haml"
38
-
39
- to config/dependencies.rb (or config/init.rb in a flat/very flat Merb application).
40
- Then it'll work just like it does in Rails.
41
-
42
- To use Haml and Sass programatically,
43
- check out the RDocs for the Haml and Sass modules.
44
-
45
- == Formatting
46
-
47
- === Haml
48
-
49
- The most basic element of Haml
50
- is a shorthand for creating HTML tags:
51
-
52
- %tagname{:attr1 => 'value1', :attr2 => 'value2'} Contents
53
-
54
- No end-tag is needed; Haml handles that automatically.
55
- Adding <tt>class</tt> and <tt>id</tt> attributes is even easier.
56
- Haml uses the same syntax as the CSS that styles the document:
57
-
58
- %tagname#id.class
59
-
60
- In fact, when you're using the <tt><div></tt> tag,
61
- it becomes <em>even easier</em>.
62
- Because <tt><div></tt> is such a common element,
63
- a tag without a name defaults to a div. So
64
-
65
- #foo Hello!
66
-
67
- becomes
68
-
69
- <div id='foo'>Hello!</div>
70
-
71
- Haml uses indentation
72
- to bring the individual elements to represent the HTML structure.
73
- A tag's children are indented beneath than the parent tag.
74
- Again, a closing tag is automatically added.
75
- For example:
76
-
77
- %ul
78
- %li Salt
79
- %li Pepper
80
-
81
- becomes:
82
-
83
- <ul>
84
- <li>Salt</li>
85
- <li>Pepper</li>
86
- </ul>
87
-
88
- You can also put plain text as a child of an element:
89
-
90
- %p
91
- Hello,
92
- World!
93
-
94
- It's also possible to embed Ruby code into Haml documents.
95
- An equals sign, <tt>=</tt>, will output the result of the code.
96
- A hyphen, <tt>-</tt>, will run the code but not output the result.
97
- You can even use control statements
98
- like <tt>if</tt> and <tt>while</tt>:
99
-
100
- %p
101
- Date/Time:
102
- - now = DateTime.now
103
- %strong= now
104
- - if now > DateTime.parse("December 31, 2006")
105
- = "Happy new " + "year!"
106
-
107
- Haml provides far more tools than those presented here.
108
- Check out the reference documentation in the Haml module.
109
-
110
- === Sass
111
-
112
- At its most basic,
113
- Sass is just another way of writing CSS.
114
- Although it's very much like normal CSS,
115
- the basic syntax offers a few helpful features:
116
- tabulation indicates the attributes in a rule,
117
- rather than non-DRY brackets;
118
- and newlines indicate the end of an attribute,
119
- rather than a semicolon.
120
- For example:
121
-
122
- #main
123
- :background-color #f00
124
- :width 98%
125
-
126
- becomes:
127
-
128
- #main {
129
- background-color: #f00;
130
- width: 98% }
131
-
132
- However, Sass provides much more than a way to make CSS look nice.
133
- In CSS, it's important to have accurate selectors,
134
- so your styles don't just apply to everything.
135
- However, in order to do this,
136
- you need to use nested element selectors.
137
- These get very ugly very quickly.
138
- I'm sure everyone's had to write something like
139
- "#main .sidebar .top p h1 a",
140
- followed by
141
- "#main .sidebar .top p h1 a:visited" and
142
- "#main .sidebar .top p h1 a:hover".
143
- Well, Sass gets rid of that.
144
- Like Haml, it uses indentation to indicate the structure of the document.
145
- So, what was:
146
-
147
- #main {
148
- width: 90%;
149
- }
150
- #main p {
151
- border-style: solid;
152
- border-width: 1px;
153
- border-color: #00f;
154
- }
155
- #main p a {
156
- text-decoration: none;
157
- font-weight: bold;
158
- }
159
- #main p a:hover {
160
- text-decoration: underline;
161
- }
162
-
163
- becomes:
164
-
165
- #main
166
- :width 90%
167
- p
168
- :border-style solid
169
- :border-width 1px
170
- :border-color #00f
171
- a
172
- :text-decoration none
173
- :font-weight bold
174
- a:hover
175
- :text-decoration underline
176
-
177
- Pretty nice, no? Well, it gets better.
178
- One of the main complaints against CSS is that it doesn't allow variables.
179
- What if have a color or a width you re-use all the time?
180
- In CSS, you just have to re-type it each time,
181
- which is a nightmare when you decide to change it later.
182
- Not so for Sass!
183
- You can use the "!" character to set variables.
184
- Then, if you put "=" after your attribute name,
185
- you can set it to a variable.
186
- For example:
187
-
188
- !note_bg= #55aaff
189
-
190
- #main
191
- :width 70%
192
- .note
193
- :background-color= !note_bg
194
- p
195
- :width 5em
196
- :background-color= !note_bg
197
-
198
- becomes:
199
-
200
- #main {
201
- width: 70%; }
202
- #main .note {
203
- background-color: #55aaff; }
204
- #main p {
205
- width: 5em;
206
- background-color: #55aaff; }
207
-
208
- You can even do simple arithmetic operations with variables,
209
- adding numbers and even colors together:
210
-
211
- !main_bg= #46ar12
212
- !main_width= 40em
213
-
214
- #main
215
- :background-color= !main_bg
216
- :width= !main_width
217
- .sidebar
218
- :background-color= !main_bg + #333333
219
- :width= !main_width - 25em
220
-
221
- becomes:
222
-
223
- #main {
224
- background-color: #46a312;
225
- width: 40em; }
226
- #main .sidebar {
227
- background-color: #79d645;
228
- width: 15em; }
229
-
230
- Taking the idea of variables a bit further are mixins.
231
- These let you group whole swathes of CSS attributes into a single
232
- directive and then include those anywhere you want:
233
-
234
- =blue-border
235
- :border
236
- :color blue
237
- :width 2px
238
- :style dotted
239
-
240
- .comment
241
- +blue-border
242
- :padding 2px
243
- :margin 10px 0
244
-
245
- .reply
246
- +blue-border
247
-
248
- becomes:
249
-
250
- .comment {
251
- border-color: blue;
252
- border-width: 2px;
253
- border-style: dotted;
254
- padding: 2px;
255
- margin: 10px 0;
256
- }
257
-
258
- .reply {
259
- border-color: blue;
260
- border-width: 2px;
261
- border-style: dotted;
262
- }
263
-
264
- A comprehensive list of features is in
265
- the documentation for the Sass module.
266
-
267
- == Indentation
268
-
269
- Indentation can be made up of one or more tabs or spaces.
270
- However, indentation must be consistent within a given document.
271
- Hard tabs and spaces can't be mixed,
272
- and the same number of tabs or spaces must be used throughout.
273
-
274
- == Executables
275
-
276
- The Haml gem includes several executables that are useful
277
- for dealing with Haml and Sass from the command line.
278
-
279
- === +haml+
280
-
281
- The +haml+ executable transforms a source Haml file into HTML.
282
- See <tt>haml --help</tt> for further information and options.
283
-
284
- === +sass+
285
-
286
- The +sass+ executable transforms a source Sass file into CSS.
287
- See <tt>sass --help</tt> for further information and options.
288
-
289
- === <tt>html2haml</tt>
290
-
291
- The <tt>html2haml</tt> executable attempts to transform HTML,
292
- optionally with ERB markup, into Haml code.
293
- Since HTML is so variable, this transformation is not always perfect;
294
- it's a good idea to have a human check the output of this tool.
295
- See <tt>html2haml --help</tt> for further information and options.
296
-
297
- === <tt>css2sass</tt>
298
-
299
- The <tt>css2sass</tt> executable attempts to transform CSS into Sass code.
300
- This transformation attempts to use Sass nesting where possible.
301
- See <tt>css2sass --help</tt> for further information and options.
302
-
303
- == Authors
304
-
305
- Haml and Sass are designed by Hampton Catlin (hcatlin) and he is the author
306
- of the original implementation. However, Hampton doesn't even know his way
307
- around the code anymore and mostly just concentrates on the language issues.
308
- Hampton lives in Toronto, Ontario (though he's an American by birth) and
309
- is a partner at Unspace Interactive.
310
-
311
- Nathan Weizenbaum is the primary maintainer and architect of the "modern" Ruby
312
- implementation of Haml. His hard work has kept the project alive by endlessly
313
- answering forum posts, fixing bugs, refactoring, finding speed improvements,
314
- writing documentation, implementing new features, and getting Hampton
315
- coffee (a fitting task for a boy-genius). Nathan lives in Seattle, Washington and
316
- while not being a student at University of Washington he consults for
317
- Unspace Interactive and Microsoft.
318
-
319
- Chris Eppstein is a core contributor to Sass and the creator of Compass, the first
320
- Sass-based framework. Chris focuses on making Sass more powerful, easy to use, and
321
- on ways to speed its adoption through the web development community. Chris lives in
322
- San Jose, CA with his wife and daughter. He is the Software Architect for Caring.com,
323
- a website devoted to the 34 Million caregivers whose parents are sick or elderly,
324
- that uses Haml and Sass.
325
-
326
- If you use this software, you must pay Hampton a compliment. And
327
- buy Nathan some jelly beans. Maybe pet a kitten. Yeah. Pet that kitty.
328
-
329
- Some of the work on Haml was supported by Unspace Interactive.
330
-
331
- Beyond that, the implementation is licensed under the MIT License.
332
- Ok, fine, I guess that means compliments aren't *required*.