Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5482342

Browse files
committed
minor #7629 Update jpeg_optimize.rst (atailouloute)
This PR was merged into the 2.7 branch. Discussion ---------- Update jpeg_optimize.rst Fix some configuration examples Commits ------- e7ac611 Update jpeg_optimize.rst & apply_to_option.rst
2 parents 5ad4520 + e7ac611 commit 5482342

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

assetic/apply_to_option.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,9 @@ In this case you can specify that the ``coffee`` filter is applied to all
161161
name="coffee"
162162
bin="/usr/bin/coffee"
163163
node="/usr/bin/node"
164-
apply_to="\.coffee$" />
165-
<assetic:node-paths>/usr/lib/node_modules/</assetic:node-path>
164+
apply-to="\.coffee$" />
165+
<assetic:node-path>/usr/lib/node_modules/</assetic:node-path>
166+
</assetic:filter>
166167
</assetic:config>
167168
</container>
168169
@@ -172,10 +173,10 @@ In this case you can specify that the ``coffee`` filter is applied to all
172173
$container->loadFromExtension('assetic', array(
173174
'filters' => array(
174175
'coffee' => array(
175-
'bin' => '/usr/bin/coffee',
176-
'node' => '/usr/bin/node',
176+
'bin' => '/usr/bin/coffee',
177+
'node' => '/usr/bin/node',
177178
'node_paths' => array('/usr/lib/node_modules/'),
178-
'apply_to' => '\.coffee$',
179+
'apply_to' => '\.coffee$',
179180
),
180181
),
181182
));

assetic/jpeg_optimize.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ to ``true``:
111111
<assetic:filter
112112
name="jpegoptim"
113113
bin="path/to/jpegoptim"
114-
strip_all="true" />
114+
strip-all="true" />
115115
</assetic:config>
116116
</container>
117117
@@ -215,7 +215,7 @@ following configuration:
215215
name="jpegoptim"
216216
bin="path/to/jpegoptim" />
217217
<assetic:twig>
218-
<assetic:twig_function
218+
<assetic:function
219219
name="jpegoptim" />
220220
</assetic:twig>
221221
</assetic:config>
@@ -275,7 +275,7 @@ file:
275275
name="jpegoptim"
276276
bin="path/to/jpegoptim" />
277277
<assetic:twig>
278-
<assetic:twig_function
278+
<assetic:function
279279
name="jpegoptim"
280280
output="images/*.jpg" />
281281
</assetic:twig>

0 commit comments

Comments
 (0)