sprockets
https://github.com/rails/sprockets
Ruby
Rack-based asset packaging system
Sprockets::DirectiveProcessor#process_link_tree_directive
`link_tree` links all the nested files in a directory.
Its glob equivalent is `path/**/*`.
//= link_tree "./images"
Use caution when linking against JS or CSS assets. Include an explicit
extension or content type in these cases
//= link_tree "./styles" .cssEdit
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_link_tree_directive-for-pr
# Commit to gitgit add lib/sprockets/directive_processor.rbgit commit -m "better docs for Sprockets::DirectiveProcessor#process_link_tree_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_link_tree_directive-for-pr
hub pull-request
# Celebrate!