Skip to content

Commit 6fe4510

Browse files
JoeRoblesweaverryan
authored andcommitted
Updated for php array, pending review of xml
1 parent f148324 commit 6fe4510

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

cookbook/assetic/apply_to_option.rst

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ respectively to ``/usr/bin/coffee``, ``/usr/bin/node`` and ``/usr/lib/node_modul
2828
2929
<!-- app/config/config.xml -->
3030
<assetic:config>
31-
<assetic:filter
31+
<assetic:filter
3232
name="coffee"
33-
bin="/usr/bin/coffee"
34-
node="/usr/bin/node"
35-
node_paths="/usr/lib/node_modules/"/>
33+
bin="/usr/bin/coffee/"
34+
node="/usr/bin/node/">
35+
<assetic:node-paths>/usr/lib/node_modules/</assetic:node-path>
36+
</assetic:filter>
3637
</assetic:config>
3738
3839
.. code-block:: php
@@ -43,7 +44,7 @@ respectively to ``/usr/bin/coffee``, ``/usr/bin/node`` and ``/usr/lib/node_modul
4344
'coffee' => array(
4445
'bin' => '/usr/bin/coffee',
4546
'node' => '/usr/bin/node',
46-
'node_paths' => '/usr/lib/node_modules/',
47+
'node_paths' => array('/usr/lib/node_modules/'),
4748
),
4849
),
4950
));
@@ -142,10 +143,10 @@ applied to all ``.coffee`` files:
142143
name="coffee"
143144
bin="/usr/bin/coffee"
144145
node="/usr/bin/node"
145-
node_paths="/usr/lib/node_modules/"
146146
apply_to="\.coffee$" />
147+
<assetic:node-paths>/usr/lib/node_modules/</assetic:node-path>
147148
</assetic:config>
148-
149+
149150
.. code-block:: php
150151
151152
// app/config/config.php
@@ -154,7 +155,7 @@ applied to all ``.coffee`` files:
154155
'coffee' => array(
155156
'bin' => '/usr/bin/coffee',
156157
'node' => '/usr/bin/node',
157-
'node_paths' => '/usr/lib/node_modules/',
158+
'node_paths' => array('/usr/lib/node_modules/'),
158159
'apply_to' => '\.coffee$',
159160
),
160161
),

0 commit comments

Comments
 (0)