Skip to content

Instantly share code, notes, and snippets.

@roryashfordbentley
Created October 24, 2014 11:14
Show Gist options
  • Save roryashfordbentley/de3730d59df8fa4a5b5a to your computer and use it in GitHub Desktop.
Save roryashfordbentley/de3730d59df8fa4a5b5a to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// 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;
}
}
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