a batteries included framework for stylesheets. Beyond rails integration it provides a Sass environment for non-rubyists. Biased? Yes. But it’s ok to love the things you’ve made? Especially if you get a lot of help...
I’m going to try. But here’s the thing: the asset pipeline is what I would consider an “MVP” It’s still got a lot of growing up to do and we should all help because the vision is a beautiful thing. File bugs. make feature requests, build plugins
precompile Part of your deploy asset types are merged digest is added to assets caches are happy personal opinion: this is too many hash digits (8 should suffice) gzip ﬁles are made. Some webserver conﬁguration is needed.
of the ﬁle. This inverts that order. • require - ﬁnd, process a ﬁle, & inline the output • require_tree - require all ﬁles in a folder (recursively) • depend_on - invalidate this ﬁle if the dependency changes Sprockets Directives Mixins & Variables will be not available.
are always relative to the current ﬁle. First looks relative to the current ﬁle, then searches the asset path. ﬁlename can begin with an underscore to denote a partial. require_self is not needed. @imports happen where they appear. Mixins & Variables from imported ﬁles will be available.