mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
edit assets guide for cases & minor wording changes
This commit is contained in:
parent
618802df71
commit
5225227110
1 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ endprologue.
|
|||
|
||||
h3. What Is The Asset Pipeline?
|
||||
|
||||
With Rails 3.1 comes a new feature known as the asset pipeline. The asset pipeline provides features that have usually been implemented by external gems, such as Jammit and Sprockets. These gems would serve concatenated or compressed versions of the assets of an application, such as stylesheets or javascript files so that the number of requests made to the server are lessened, making the page load faster. Rails 3.1 now includes the later gem, Sprockets.
|
||||
With Rails 3.1 comes a new feature known as the asset pipeline. The asset pipeline provides features that have usually been implemented by external gems, such as Jammit and Sprockets. These gems would serve concatenated or compressed versions of the assets of an application, such as stylesheets or JavaScript files so that the number of requests made to the server are reduced, making the page load faster. Rails 3.1 includes the Sprockets gem.
|
||||
|
||||
h3. How to Use the Asset Pipeline
|
||||
|
||||
|
@ -27,7 +27,7 @@ h4. Asset Organization
|
|||
|
||||
Assets can be placed inside an application in one of three locations: +app/assets+, +lib/assets+ or +vendor/assets+.
|
||||
|
||||
+app/assets+ is for assets that are owned by the application, such as custom images, javascript files or stylesheets.
|
||||
+app/assets+ is for assets that are owned by the application, such as custom images, JavaScript files or stylesheets.
|
||||
|
||||
+lib/assets+ is for your own libraries' code that doesn't really fit into the scope of the application or those libraries which are shared across applications.
|
||||
|
||||
|
@ -96,4 +96,4 @@ WIP: Compressed Assets in Rails are served ... how?
|
|||
|
||||
h4. Adding Assets to Your Gems
|
||||
|
||||
h4. Making Your Library or Gem a Pre-Processors
|
||||
h4. Making Your Library or Gem a Pre-Processor
|
||||
|
|
Loading…
Reference in a new issue