haml 3.0.25 → 3.1.0.alpha.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of haml might be problematic. Click here for more details.
- data/.yardopts +1 -1
- data/CONTRIBUTING +0 -1
- data/EDGE_GEM_VERSION +1 -0
- data/MIT-LICENSE +1 -1
- data/README.md +10 -175
- data/Rakefile +56 -84
- data/VERSION +1 -1
- data/VERSION_NAME +1 -1
- data/init.rb +1 -1
- data/lib/haml.rb +14 -12
- data/lib/haml/engine.rb +1 -1
- data/lib/haml/exec.rb +19 -316
- data/lib/haml/helpers/action_view_extensions.rb +1 -1
- data/lib/haml/html.rb +69 -76
- data/lib/haml/precompiler.rb +34 -41
- data/lib/haml/railtie.rb +4 -6
- data/lib/haml/template/plugin.rb +6 -16
- data/lib/haml/util.rb +91 -107
- data/lib/haml/version.rb +7 -0
- data/test/benchmark.rb +2 -9
- data/test/haml/engine_test.rb +195 -92
- data/test/haml/html2haml/erb_tests.rb +0 -14
- data/test/haml/util_test.rb +32 -0
- data/test/test_helper.rb +0 -39
- metadata +96 -324
- data/bin/css2sass +0 -13
- data/bin/sass +0 -8
- data/bin/sass-convert +0 -7
- data/extra/haml-mode.el +0 -753
- data/extra/sass-mode.el +0 -207
- data/lib/haml/util/subset_map.rb +0 -101
- data/lib/sass.rb +0 -29
- data/lib/sass/callbacks.rb +0 -52
- data/lib/sass/css.rb +0 -294
- data/lib/sass/engine.rb +0 -720
- data/lib/sass/environment.rb +0 -143
- data/lib/sass/error.rb +0 -198
- data/lib/sass/files.rb +0 -160
- data/lib/sass/less.rb +0 -382
- data/lib/sass/plugin.rb +0 -279
- data/lib/sass/plugin/configuration.rb +0 -221
- data/lib/sass/plugin/generic.rb +0 -15
- data/lib/sass/plugin/merb.rb +0 -37
- data/lib/sass/plugin/rack.rb +0 -47
- data/lib/sass/plugin/rails.rb +0 -32
- data/lib/sass/plugin/staleness_checker.rb +0 -123
- data/lib/sass/repl.rb +0 -58
- data/lib/sass/script.rb +0 -63
- data/lib/sass/script/bool.rb +0 -18
- data/lib/sass/script/color.rb +0 -491
- data/lib/sass/script/css_lexer.rb +0 -29
- data/lib/sass/script/css_parser.rb +0 -31
- data/lib/sass/script/funcall.rb +0 -77
- data/lib/sass/script/functions.rb +0 -861
- data/lib/sass/script/interpolation.rb +0 -70
- data/lib/sass/script/lexer.rb +0 -337
- data/lib/sass/script/literal.rb +0 -236
- data/lib/sass/script/node.rb +0 -112
- data/lib/sass/script/number.rb +0 -423
- data/lib/sass/script/operation.rb +0 -95
- data/lib/sass/script/parser.rb +0 -401
- data/lib/sass/script/string.rb +0 -67
- data/lib/sass/script/string_interpolation.rb +0 -93
- data/lib/sass/script/unary_operation.rb +0 -57
- data/lib/sass/script/variable.rb +0 -48
- data/lib/sass/scss.rb +0 -17
- data/lib/sass/scss/css_parser.rb +0 -46
- data/lib/sass/scss/parser.rb +0 -855
- data/lib/sass/scss/rx.rb +0 -126
- data/lib/sass/scss/sass_parser.rb +0 -11
- data/lib/sass/scss/script_lexer.rb +0 -15
- data/lib/sass/scss/script_parser.rb +0 -25
- data/lib/sass/scss/static_parser.rb +0 -40
- data/lib/sass/selector.rb +0 -361
- data/lib/sass/selector/abstract_sequence.rb +0 -62
- data/lib/sass/selector/comma_sequence.rb +0 -82
- data/lib/sass/selector/sequence.rb +0 -237
- data/lib/sass/selector/simple.rb +0 -113
- data/lib/sass/selector/simple_sequence.rb +0 -136
- data/lib/sass/tree/charset_node.rb +0 -37
- data/lib/sass/tree/comment_node.rb +0 -128
- data/lib/sass/tree/debug_node.rb +0 -36
- data/lib/sass/tree/directive_node.rb +0 -75
- data/lib/sass/tree/extend_node.rb +0 -65
- data/lib/sass/tree/for_node.rb +0 -55
- data/lib/sass/tree/if_node.rb +0 -69
- data/lib/sass/tree/import_node.rb +0 -102
- data/lib/sass/tree/mixin_def_node.rb +0 -48
- data/lib/sass/tree/mixin_node.rb +0 -111
- data/lib/sass/tree/node.rb +0 -464
- data/lib/sass/tree/prop_node.rb +0 -220
- data/lib/sass/tree/root_node.rb +0 -163
- data/lib/sass/tree/rule_node.rb +0 -261
- data/lib/sass/tree/variable_node.rb +0 -39
- data/lib/sass/tree/warn_node.rb +0 -42
- data/lib/sass/tree/while_node.rb +0 -36
- data/test/haml/util/subset_map_test.rb +0 -91
- data/test/sass/callbacks_test.rb +0 -61
- data/test/sass/conversion_test.rb +0 -1218
- data/test/sass/css2sass_test.rb +0 -364
- data/test/sass/data/hsl-rgb.txt +0 -319
- data/test/sass/engine_test.rb +0 -2267
- data/test/sass/extend_test.rb +0 -1348
- data/test/sass/functions_test.rb +0 -556
- data/test/sass/less_conversion_test.rb +0 -653
- data/test/sass/more_results/more1.css +0 -9
- data/test/sass/more_results/more1_with_line_comments.css +0 -26
- data/test/sass/more_results/more_import.css +0 -29
- data/test/sass/more_templates/_more_partial.sass +0 -2
- data/test/sass/more_templates/more1.sass +0 -23
- data/test/sass/more_templates/more_import.sass +0 -11
- data/test/sass/plugin_test.rb +0 -433
- data/test/sass/results/alt.css +0 -4
- data/test/sass/results/basic.css +0 -9
- data/test/sass/results/compact.css +0 -5
- data/test/sass/results/complex.css +0 -86
- data/test/sass/results/compressed.css +0 -1
- data/test/sass/results/expanded.css +0 -19
- data/test/sass/results/import.css +0 -31
- data/test/sass/results/import_charset.css +0 -4
- data/test/sass/results/import_charset_1_8.css +0 -4
- data/test/sass/results/import_charset_ibm866.css +0 -4
- data/test/sass/results/line_numbers.css +0 -49
- data/test/sass/results/mixins.css +0 -95
- data/test/sass/results/multiline.css +0 -24
- data/test/sass/results/nested.css +0 -22
- data/test/sass/results/options.css +0 -1
- data/test/sass/results/parent_ref.css +0 -13
- data/test/sass/results/script.css +0 -16
- data/test/sass/results/scss_import.css +0 -31
- data/test/sass/results/scss_importee.css +0 -2
- data/test/sass/results/subdir/nested_subdir/nested_subdir.css +0 -1
- data/test/sass/results/subdir/subdir.css +0 -3
- data/test/sass/results/units.css +0 -11
- data/test/sass/results/warn.css +0 -0
- data/test/sass/results/warn_imported.css +0 -0
- data/test/sass/script_conversion_test.rb +0 -314
- data/test/sass/script_test.rb +0 -470
- data/test/sass/scss/css_test.rb +0 -916
- data/test/sass/scss/rx_test.rb +0 -156
- data/test/sass/scss/scss_test.rb +0 -1122
- data/test/sass/scss/test_helper.rb +0 -37
- data/test/sass/templates/_imported_charset_ibm866.sass +0 -4
- data/test/sass/templates/_imported_charset_utf8.sass +0 -4
- data/test/sass/templates/_partial.sass +0 -2
- data/test/sass/templates/alt.sass +0 -16
- data/test/sass/templates/basic.sass +0 -23
- data/test/sass/templates/bork1.sass +0 -2
- data/test/sass/templates/bork2.sass +0 -2
- data/test/sass/templates/bork3.sass +0 -2
- data/test/sass/templates/bork4.sass +0 -2
- data/test/sass/templates/compact.sass +0 -17
- data/test/sass/templates/complex.sass +0 -305
- data/test/sass/templates/compressed.sass +0 -15
- data/test/sass/templates/expanded.sass +0 -17
- data/test/sass/templates/import.sass +0 -12
- data/test/sass/templates/import_charset.sass +0 -7
- data/test/sass/templates/import_charset_1_8.sass +0 -4
- data/test/sass/templates/import_charset_ibm866.sass +0 -9
- data/test/sass/templates/importee.less +0 -2
- data/test/sass/templates/importee.sass +0 -19
- data/test/sass/templates/line_numbers.sass +0 -13
- data/test/sass/templates/mixin_bork.sass +0 -5
- data/test/sass/templates/mixins.sass +0 -76
- data/test/sass/templates/multiline.sass +0 -20
- data/test/sass/templates/nested.sass +0 -25
- data/test/sass/templates/nested_bork1.sass +0 -2
- data/test/sass/templates/nested_bork2.sass +0 -2
- data/test/sass/templates/nested_bork3.sass +0 -2
- data/test/sass/templates/nested_bork4.sass +0 -2
- data/test/sass/templates/nested_mixin_bork.sass +0 -6
- data/test/sass/templates/options.sass +0 -2
- data/test/sass/templates/parent_ref.sass +0 -25
- data/test/sass/templates/script.sass +0 -101
- data/test/sass/templates/scss_import.scss +0 -11
- data/test/sass/templates/scss_importee.scss +0 -1
- data/test/sass/templates/subdir/nested_subdir/_nested_partial.sass +0 -2
- data/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +0 -3
- data/test/sass/templates/subdir/subdir.sass +0 -6
- data/test/sass/templates/units.sass +0 -11
- data/test/sass/templates/warn.sass +0 -3
- data/test/sass/templates/warn_imported.sass +0 -4
- data/vendor/fssm/LICENSE +0 -20
- data/vendor/fssm/README.markdown +0 -55
- data/vendor/fssm/Rakefile +0 -59
- data/vendor/fssm/VERSION.yml +0 -5
- data/vendor/fssm/example.rb +0 -9
- data/vendor/fssm/fssm.gemspec +0 -77
- data/vendor/fssm/lib/fssm.rb +0 -33
- data/vendor/fssm/lib/fssm/backends/fsevents.rb +0 -36
- data/vendor/fssm/lib/fssm/backends/inotify.rb +0 -26
- data/vendor/fssm/lib/fssm/backends/polling.rb +0 -25
- data/vendor/fssm/lib/fssm/backends/rubycocoa/fsevents.rb +0 -131
- data/vendor/fssm/lib/fssm/monitor.rb +0 -26
- data/vendor/fssm/lib/fssm/path.rb +0 -91
- data/vendor/fssm/lib/fssm/pathname.rb +0 -502
- data/vendor/fssm/lib/fssm/state/directory.rb +0 -57
- data/vendor/fssm/lib/fssm/state/file.rb +0 -24
- data/vendor/fssm/lib/fssm/support.rb +0 -63
- data/vendor/fssm/lib/fssm/tree.rb +0 -176
- data/vendor/fssm/profile/prof-cache.rb +0 -40
- data/vendor/fssm/profile/prof-fssm-pathname.html +0 -1231
- data/vendor/fssm/profile/prof-pathname.rb +0 -68
- data/vendor/fssm/profile/prof-plain-pathname.html +0 -988
- data/vendor/fssm/profile/prof.html +0 -2379
- data/vendor/fssm/spec/path_spec.rb +0 -75
- data/vendor/fssm/spec/root/duck/quack.txt +0 -0
- data/vendor/fssm/spec/root/file.css +0 -0
- data/vendor/fssm/spec/root/file.rb +0 -0
- data/vendor/fssm/spec/root/file.yml +0 -0
- data/vendor/fssm/spec/root/moo/cow.txt +0 -0
- data/vendor/fssm/spec/spec_helper.rb +0 -14
@@ -1,76 +0,0 @@
|
|
1
|
-
$yellow: #fc0
|
2
|
-
|
3
|
-
=bordered
|
4
|
-
:border
|
5
|
-
:top
|
6
|
-
:width 2px
|
7
|
-
:color $yellow
|
8
|
-
:left
|
9
|
-
:width 1px
|
10
|
-
:color #000
|
11
|
-
-moz-border-radius: 10px
|
12
|
-
|
13
|
-
=header-font
|
14
|
-
:color #f00
|
15
|
-
:font
|
16
|
-
:size 20px
|
17
|
-
|
18
|
-
=compound
|
19
|
-
+header-font
|
20
|
-
+bordered
|
21
|
-
|
22
|
-
=complex
|
23
|
-
+header-font
|
24
|
-
text:
|
25
|
-
decoration: none
|
26
|
-
&:after
|
27
|
-
content: "."
|
28
|
-
display: block
|
29
|
-
height: 0
|
30
|
-
clear: both
|
31
|
-
visibility: hidden
|
32
|
-
* html &
|
33
|
-
height: 1px
|
34
|
-
+header-font
|
35
|
-
=deep
|
36
|
-
a:hover
|
37
|
-
:text-decoration underline
|
38
|
-
+compound
|
39
|
-
|
40
|
-
|
41
|
-
#main
|
42
|
-
:width 15em
|
43
|
-
:color #0000ff
|
44
|
-
p
|
45
|
-
+bordered
|
46
|
-
:border
|
47
|
-
:style dotted
|
48
|
-
:width 2px
|
49
|
-
.cool
|
50
|
-
:width 100px
|
51
|
-
|
52
|
-
#left
|
53
|
-
+bordered
|
54
|
-
:font
|
55
|
-
:size 2em
|
56
|
-
:weight bold
|
57
|
-
:float left
|
58
|
-
|
59
|
-
#right
|
60
|
-
+bordered
|
61
|
-
+header-font
|
62
|
-
:float right
|
63
|
-
|
64
|
-
.bordered
|
65
|
-
+bordered
|
66
|
-
|
67
|
-
.complex
|
68
|
-
+complex
|
69
|
-
|
70
|
-
.more-complex
|
71
|
-
+complex
|
72
|
-
+deep
|
73
|
-
display: inline
|
74
|
-
-webkit-nonsense:
|
75
|
-
top-right: 1px
|
76
|
-
bottom-left: 1px
|
@@ -1,25 +0,0 @@
|
|
1
|
-
#main
|
2
|
-
:width 15em
|
3
|
-
:color #0000ff
|
4
|
-
p
|
5
|
-
:border
|
6
|
-
:style dotted
|
7
|
-
/* Nested comment
|
8
|
-
More nested stuff
|
9
|
-
:width 2px
|
10
|
-
.cool
|
11
|
-
:width 100px
|
12
|
-
|
13
|
-
#left
|
14
|
-
:font
|
15
|
-
:size 2em
|
16
|
-
:weight bold
|
17
|
-
:float left
|
18
|
-
|
19
|
-
#right
|
20
|
-
.header
|
21
|
-
:border-style solid
|
22
|
-
.body
|
23
|
-
:border-style dotted
|
24
|
-
.footer
|
25
|
-
:border-style dashed
|
@@ -1,25 +0,0 @@
|
|
1
|
-
a
|
2
|
-
:color #000
|
3
|
-
&:hover
|
4
|
-
:color #f00
|
5
|
-
|
6
|
-
p, div
|
7
|
-
:width 100em
|
8
|
-
& foo
|
9
|
-
:width 10em
|
10
|
-
&:hover, bar
|
11
|
-
:height 20em
|
12
|
-
|
13
|
-
#cool
|
14
|
-
:border
|
15
|
-
:style solid
|
16
|
-
:width 2em
|
17
|
-
.ie7 &, .ie6 &
|
18
|
-
:content string("Totally not cool.")
|
19
|
-
.firefox &
|
20
|
-
:content string("Quite cool.")
|
21
|
-
|
22
|
-
.wow, .snazzy
|
23
|
-
:font-family fantasy
|
24
|
-
&:hover, &:visited
|
25
|
-
:font-weight bold
|
@@ -1,101 +0,0 @@
|
|
1
|
-
$width: 10em + 20
|
2
|
-
$color: #00ff98
|
3
|
-
$main_text: #ffa
|
4
|
-
$num: 10
|
5
|
-
$dec: 10.2
|
6
|
-
$dec_0: 99.0
|
7
|
-
$neg: -10
|
8
|
-
$esc: 10\+12
|
9
|
-
$str: Hello\!
|
10
|
-
$qstr: "Quo\"ted\"!"
|
11
|
-
$hstr: Hyph-en\!
|
12
|
-
$concat: #{5 + 4} hi there
|
13
|
-
$percent: 11%
|
14
|
-
$complex: 1px/1em
|
15
|
-
|
16
|
-
#main
|
17
|
-
:content $str
|
18
|
-
:qstr $qstr
|
19
|
-
:hstr $hstr
|
20
|
-
:width $width
|
21
|
-
:background-color #000
|
22
|
-
:color $main_text
|
23
|
-
:short-color #123
|
24
|
-
:named-color olive
|
25
|
-
:con "foo" bar ($concat "boom")
|
26
|
-
:con2 "noquo" quo
|
27
|
-
#sidebar
|
28
|
-
:background-color $color
|
29
|
-
:num
|
30
|
-
:normal $num
|
31
|
-
:dec $dec
|
32
|
-
:dec0 $dec_0
|
33
|
-
:neg $neg
|
34
|
-
:esc $esc
|
35
|
-
:many 1 + 2 + 3
|
36
|
-
:order 1 + 2 * 3
|
37
|
-
:complex ((1 + 2) + 15)+#3a8b9f + (hi+(1 +1+ 2)* 4)
|
38
|
-
|
39
|
-
#plus
|
40
|
-
:num
|
41
|
-
:num 5+2
|
42
|
-
:num-un 10em + 15em
|
43
|
-
:num-un2 10 + 13em
|
44
|
-
:num-neg 10 + -.13
|
45
|
-
:str 100 * 1px
|
46
|
-
:col 13 + #aaa
|
47
|
-
:perc $percent + 20%
|
48
|
-
:str
|
49
|
-
:str "hi" + "\ there"
|
50
|
-
:str2 "hi" + " there"
|
51
|
-
:col "14em solid " + #123
|
52
|
-
:num "times: " + 13
|
53
|
-
:col
|
54
|
-
:num #f02 + 123.5
|
55
|
-
:col #12A + #405162
|
56
|
-
|
57
|
-
#minus
|
58
|
-
:num
|
59
|
-
:num 912 - 12
|
60
|
-
:col
|
61
|
-
:num #fffffa - 5.2
|
62
|
-
:col #abcdef - #fedcba
|
63
|
-
:unary
|
64
|
-
:num -1
|
65
|
-
:const -$neg
|
66
|
-
:paren -(5 + 6)
|
67
|
-
:two --12
|
68
|
-
:many --------12
|
69
|
-
:crazy -----(5 + ---$neg)
|
70
|
-
|
71
|
-
#times
|
72
|
-
:num
|
73
|
-
:num 2 * 3.5
|
74
|
-
:col 2 * #3a4b5c
|
75
|
-
:col
|
76
|
-
:num #12468a * 0.5
|
77
|
-
:col #121212 * #020304
|
78
|
-
|
79
|
-
#div
|
80
|
-
:num
|
81
|
-
:num (10 / 3.0)
|
82
|
-
:num2 (10 / 3)
|
83
|
-
:col
|
84
|
-
:num #12468a / 2
|
85
|
-
:col #abcdef / #0f0f0f
|
86
|
-
:comp $complex * 1em
|
87
|
-
|
88
|
-
#mod
|
89
|
-
:num
|
90
|
-
:num 17 % 3
|
91
|
-
:col
|
92
|
-
:col #5f6e7d % #10200a
|
93
|
-
:num #aaabac % 3
|
94
|
-
|
95
|
-
#const
|
96
|
-
:escaped
|
97
|
-
:quote \$foo \!bar
|
98
|
-
:default $str !important
|
99
|
-
|
100
|
-
#regression
|
101
|
-
:a (3 + 2) - 1
|
@@ -1,11 +0,0 @@
|
|
1
|
-
$preconst: hello;
|
2
|
-
|
3
|
-
@mixin premixin {pre-mixin: here}
|
4
|
-
|
5
|
-
@import "importee.sass", "scss_importee", "basic.sass", "basic.css", "../results/complex.css";
|
6
|
-
@import "partial.sass";
|
7
|
-
|
8
|
-
nonimported {
|
9
|
-
myconst: $preconst;
|
10
|
-
otherconst: $postconst;
|
11
|
-
@include postmixin; }
|
@@ -1 +0,0 @@
|
|
1
|
-
scss {imported: yes}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
b
|
2
|
-
:foo 0.5 * 10px
|
3
|
-
:bar 10zzz * 12px / 5zzz
|
4
|
-
:baz percentage(12.0px / 18px)
|
5
|
-
:many-units 10.0zzz / 3yyy * 12px / 5zzz * 3yyy / 3px * 4em
|
6
|
-
:mm 5mm + 1cm
|
7
|
-
:pc 1pc + 12pt
|
8
|
-
:pt 72pt - 2in
|
9
|
-
:inches 1in + 2.54cm
|
10
|
-
:more-inches 1in + ((72pt * 2in) + (36pt * 1in)) / 2.54cm
|
11
|
-
:mixed (1 + (1em * 6px / 3in)) * 4in / 2em
|
data/vendor/fssm/LICENSE
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2009 Travis Tilley
|
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.
|