diff options
author | Ryan Bigg <radarlistener@gmail.com> | 2011-06-18 21:11:15 +1000 |
---|---|---|
committer | Ryan Bigg <radarlistener@gmail.com> | 2011-06-18 21:11:15 +1000 |
commit | 4f301b25402fb8736921752ceba5ba79c37bfd12 (patch) | |
tree | 5c53dfce4e5b46a8c35f659e7ac908d2412e60f1 | |
parent | d746aea6f9fd7d58358618491f45fe7406bc5a92 (diff) | |
download | rails-4f301b25402fb8736921752ceba5ba79c37bfd12.tar.gz rails-4f301b25402fb8736921752ceba5ba79c37bfd12.tar.bz2 rails-4f301b25402fb8736921752ceba5ba79c37bfd12.zip |
Fix indentation on manifest examples in assets guide
-rw-r--r-- | railties/guides/source/asset_pipeline.textile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile index 23c849c1f7..febf8163f1 100644 --- a/railties/guides/source/asset_pipeline.textile +++ b/railties/guides/source/asset_pipeline.textile @@ -72,9 +72,9 @@ Sprockets allows some assets to be manifest files. These manifest files require For example, in the default Rails application there's a +app/assets/javascripts/application.js+ file which contains the following lines: <plain> - //= require jquery - //= require jquery_ujs - //= require_tree . +//= require jquery +//= require jquery_ujs +//= require_tree . </plain> In JS files, directives begin with +//=+. In this case, the file is using the +require+ directive twice and the +require_tree+ directive once. The +require+ directive tells Sprockets that we would like to require a file called +jquery.js+ that is available somewhere in the search path for Sprockets. By default, this is located inside the +vendor/assets/javascripts+ directory contained within the +jquery_rails+ gem. An identical event takes place for the +jquery_ujs+ require specified here also. @@ -84,10 +84,10 @@ The +require_tree .+ directive tells Sprockets to include _all_ JavaScript files There's also a default +app/assets/stylesheets/application.css+ file which contains these lines: <plain> - /* ... - *= require_self - *= require_tree . - */ +/* ... +*= require_self +*= require_tree . +*/ </plain> The directives that work in the JavaScript files will also work in stylesheets, obviously requiring stylesheets rather than JavaScript files. The +require_tree+ directive here works the same way as the JavaScript one, requiring all stylesheets from the current directory. |