sprockets
https://github.com/rails/sprockets
Ruby
Rack-based asset packaging system
Sprockets::DirectiveProcessor#process_depend_on_asset_directive
Allows you to state a dependency on an asset without including
it.
This is used for caching purposes. Any changes that would
invalid the asset dependency will invalidate the cache our the
source file.
Unlike `depend_on`, the path must be a requirable asset.
//= depend_on_asset "bar.js"Edit
git clone [email protected]:rails/sprockets.git
cd sprockets
open lib/sprockets/directive_processor.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Sprockets--DirectiveProcessor-process_depend_on_asset_directive-for-pr
# Commit to gitgit add lib/sprockets/directive_processor.rbgit commit -m "better docs for Sprockets::DirectiveProcessor#process_depend_on_asset_directive"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Sprockets--DirectiveProcessor-process_depend_on_asset_directive-for-pr
hub pull-request
# Celebrate!