documentcloud/jammit — pull request #232 by jdeerhake (2012-05-09 09:35:10+00:00)
Title: js_source_directory and css_source_directory

Add configuration options to automatically prepend a directory to each of your JS and CSS files. Just trying to DRY up the config file a little bit so that something like this:

```yaml
- public/stylesheets/compiled/ui/action_sheet.css
- public/stylesheets/compiled/ui/modal.css
- public/stylesheets/compiled/ui/loading_modal.css
- public/stylesheets/compiled/ui/slide_out_menu.css
- public/stylesheets/compiled/mobile/global.css
- public/stylesheets/compiled/mobile/checkout.css
- public/stylesheets/compiled/mobile/onboarding.css
- public/stylesheets/compiled/mobile/events.css
```

Could be turned into this:

```yaml
css_source_directory: public/stylesheets/compiled/
- ui/action_sheet.css
- ui/modal.css
- ui/loading_modal.css
- ui/slide_out_menu.css
- mobile/global.css
- mobile/checkout.css
- mobile/onboarding.css
- mobile/events.css
```

I'm not much of a rubyist so I'm sure this could be done in better ways, but it's feature I'm starting to badly need for a large site.