SassyExport 1.0.3 → 1.0.4
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.
- data/lib/SassyExport.rb +2 -2
- data/stylesheets/SassyExport.scss +3 -3
- metadata +1 -1
data/lib/SassyExport.rb
CHANGED
@@ -12,7 +12,7 @@ Compass::Frameworks.register('SassyExport', :path => extension_path)
|
|
12
12
|
# ----------------------------------------------------------------------------------------------------
|
13
13
|
|
14
14
|
module SassyExport
|
15
|
-
VERSION = "1.0.
|
15
|
+
VERSION = "1.0.4"
|
16
16
|
DATE = "2014-05-31"
|
17
17
|
end
|
18
18
|
|
@@ -25,7 +25,7 @@ end
|
|
25
25
|
# @return string | write filename to path
|
26
26
|
|
27
27
|
module Sass::Script::Functions
|
28
|
-
def
|
28
|
+
def SassyExport(path, filename, string)
|
29
29
|
# define root path up to current folder
|
30
30
|
root = File.dirname(options[:filename] || ".")
|
31
31
|
# open file [create new file if file does not exist], write $string to $root/$path/$filename
|
@@ -9,10 +9,10 @@
|
|
9
9
|
// ----------------------------------------------------------------------------------------------------
|
10
10
|
// @return creates placeholeder | write filename to path
|
11
11
|
|
12
|
-
@mixin
|
12
|
+
@mixin SassyExport($path, $filename, $map) {
|
13
13
|
@at-root {
|
14
|
-
%
|
15
|
-
content: "#{
|
14
|
+
%SassyExport {
|
15
|
+
content: "#{SassyExport(unquote($path), unquote($filename), unquote(json_encode($map)))}";
|
16
16
|
}
|
17
17
|
}
|
18
18
|
}
|