Created
October 24, 2014 11:14
-
-
Save roryashfordbentley/de3730d59df8fa4a5b5a to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.0) | |
// ---- | |
$comics: ( | |
deadpool: ( | |
issue: 001, | |
year: 1995 | |
), | |
fables: ( | |
issue: 001, | |
year: 2002 | |
) | |
); | |
//$test: (a:1,b:2); | |
//map-get(map-get($arr, comics), deadpool); | |
// Sass implementation | |
//@each $title, $data in $comics{ | |
//.#{$title}{ | |
//nested looping | |
//@each $key,$value in $data{ | |
//#{$key}: $value; | |
//} | |
//} | |
//} | |
// Workaround | |
//@each $key in map-keys($map) { | |
//$value: map-get($map, $key); | |
//} | |
//libsass | |
@each $comic in map-keys($comics){ | |
$issue: map-get($comic, issue); | |
// Test This value | |
.test{ | |
//test: $value; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stdin:32: argument `$map` of `map-get($map, $key)` must be a map | |
Backtrace: | |
stdin:32, in function `map-get` | |
stdin:32 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment