=====================
...a gist-driven presentation
- Loren Norman
- @lorennorman
- [email protected]
[ lots of source files in various formats ] -> [ single file in target format ]
Lets a web request ask for /assets/target_file.target_format
Lets the source files reference each other without knowing exactly where they are.
Coffeescript -> Javascript + concatenation
Sass/Less -> CSS + concatenation
Images... less so. Eases lookup, but could (should!) do spritesheets.
- clean up the "junk drawer" of /public
- treat javascript like actual code!
- extensions get a Right Way to extend projects
- implemented as Rack Middleware
- compile BEFORE concat? why? before | after
- can't override options to coffee/sass/etc compilers?
- search path is always globally scoped? junk drawer is now a Level 80 Junk Drawer
- dropped the CLI interface?
- "surely this will be sorted after people actually start USING it and find it wanting" -me
- "we didn't touch the asset pipeline at all" - Rails 3.2
- what to do?
"An extension to Rake for dealing with a directory of inputs, a number of filters, and a directory of outputs"
- nice DSL for building custom pipes
- feels like the middleware pattern, which feels about right
- also provides middleware: put it where you want
- runs on command line (rake under the covers for better/worse)
Longer, static-file-supporting, Javascript!