Programming with Sass
summary
Shows a real Sass library that wraps the Google Web Fonts API, generates import URLs and a short configurable API, and ships workarounds for libsass quirks (import only accepts strings). Implements string-replace implemented in Sass to do URL encoding, documents the libsass hacks, and provides testing via a Ruby harness that uses the sass-unit tests via git-diff approach to compare compiled CSS. Library gains a few hundred GitHub stars and is production-ready.
AI-written summary · about
chapters (9)
- 0:00Introduction to Sass programming
- 1:03Repetitive code with loops and mixins
- 2:27Building reusable Sass libraries
- 4:53Designing a clean API for fonts
- 8:05String manipulation challenges
- 9:33Module system limitations
- 11:00Testing Sass libraries
- 15:11Debugging and interactive shell
- 17:42Extending Sass beyond its limits
