| 20 | Interpolating |
Included in Sass are some programmer-style functions, which we’ll look over in the next couple of tasks. These are called SassScripts.
Let’s learn about a general SassScript that allows you to dynamically generate style sheets. It’s called interpolation. Oh, fancy sounding word—how we love you! It makes us sound smart just by saying it. You try it: interpolation. Feels good, doesn’t it?
Interpolation basically means “put this there.” Imagine you want to write a mixin that has a dynamic property or selector. And you don’t want a dynamic property value—that’s easy stuff that you’ve already done. You want the very name of a property or selector to be dynamically generated. Well, you’re in luck, because that’s exactly what interpolation ...