vendor/assetic/docs/en/introduction.md
author cavaliet
Mon, 07 Jul 2014 17:23:47 +0200
changeset 122 d672f7dd74dc
parent 0 7f95f8617b0b
permissions -rwxr-xr-x
Added tag V00.17 for changeset ada5f3d8b5b4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
What is Assetic?
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
----------------
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
Assetic is an asset management framework for PHP 5.3. Assetic enables you to
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
use a variety of third party tools that will help bring order to your
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
application's Javascripts, stylesheets and images.
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
How Do I Use Assetic?
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
---------------------
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
There are two distinct approaches you can take when using Assetic:
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
 1. Build, dump and output assets in PHP files that you reference directly
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
    from your templates
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
 2. Defining assets in your templates ("on the fly") and use a loader to
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
    extract, dump and output them
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
The first approach is simpler, but the second, with all its moving parts,
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
offers more flexibility and opportunity for optimization.
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
Next: [Building and Dumping Assets](build.md)