Skip to content

Commit

Permalink
Updated for php array, pending review of xml
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeRobles authored and weaverryan committed Jul 18, 2013
1 parent f148324 commit 6fe4510
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions cookbook/assetic/apply_to_option.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ respectively to ``/usr/bin/coffee``, ``/usr/bin/node`` and ``/usr/lib/node_modul
<!-- app/config/config.xml -->
<assetic:config>
<assetic:filter
<assetic:filter
name="coffee"
bin="/usr/bin/coffee"
node="/usr/bin/node"
node_paths="/usr/lib/node_modules/"/>
bin="/usr/bin/coffee/"
node="/usr/bin/node/">
<assetic:node-paths>/usr/lib/node_modules/</assetic:node-path>
</assetic:filter>
</assetic:config>
.. code-block:: php
Expand All @@ -43,7 +44,7 @@ respectively to ``/usr/bin/coffee``, ``/usr/bin/node`` and ``/usr/lib/node_modul
'coffee' => array(
'bin' => '/usr/bin/coffee',
'node' => '/usr/bin/node',
'node_paths' => '/usr/lib/node_modules/',
'node_paths' => array('/usr/lib/node_modules/'),
),
),
));
Expand Down Expand Up @@ -142,10 +143,10 @@ applied to all ``.coffee`` files:
name="coffee"
bin="/usr/bin/coffee"
node="/usr/bin/node"
node_paths="/usr/lib/node_modules/"
apply_to="\.coffee$" />
<assetic:node-paths>/usr/lib/node_modules/</assetic:node-path>
</assetic:config>
.. code-block:: php
// app/config/config.php
Expand All @@ -154,7 +155,7 @@ applied to all ``.coffee`` files:
'coffee' => array(
'bin' => '/usr/bin/coffee',
'node' => '/usr/bin/node',
'node_paths' => '/usr/lib/node_modules/',
'node_paths' => array('/usr/lib/node_modules/'),
'apply_to' => '\.coffee$',
),
),
Expand Down

0 comments on commit 6fe4510

Please sign in to comment.