csspre
csspre copied to clipboard
Objects/maps
There are a lot of things you could do with objects/hashes/maps, at least Stylus and Sass have them: http://sass-lang.com/documentation/file.SASS_REFERENCE.html#maps aтd http://learnboost.github.io/stylus/docs/hashes.html
There are a lot of nuances in working with objects both in Stylus and Sass, so it wouldn't be a short post, haha.
I like the idea, however it needs to be broken down to smaller, logically autonomous posts.
For example we can have a post for each of these topics:
- creating/defining maps/lists/hashes/objects
- manipulating existing maps/lists/hashes/objects (adding/removing values)
- extracting values from maps/lists/hashes/objects (for individual use or for loops, each, etc)
- checking stuff about maps/lists/hashes/objects (value existence, length, other facts that may be useful)
Some of these might still make for a pretty long article though.