Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
2f5d870f
Commit
2f5d870f
authored
Jul 15, 2016
by
DaveC49
Committed by
Fabien Potencier
Feb 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added argument description to twig asset() method
parent
efe70d6a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
doc/providers/asset.rst
doc/providers/asset.rst
+6
-1
No files found.
doc/providers/asset.rst
View file @
2f5d870f
...
@@ -46,7 +46,10 @@ Registering
...
@@ -46,7 +46,10 @@ Registering
Usage
Usage
-----
-----
The AssetServiceProvider is mostly useful with the Twig provider:
The AssetServiceProvider is mostly useful with the Twig provider using the asset(method).
This has two string arguments. In the case of named packages, the first is the path relative to
the base_path specified in the package definition and the second is the package name. For unmamed
packages, there is only one argument, the path relative to the assets folder:
.. code-block:: jinja
.. code-block:: jinja
...
@@ -56,5 +59,7 @@ The AssetServiceProvider is mostly useful with the Twig provider:
...
@@ -56,5 +59,7 @@ The AssetServiceProvider is mostly useful with the Twig provider:
{{ asset_version('/css/foo.png') }}
{{ asset_version('/css/foo.png') }}
For more information, check out the `Asset Component documentation
For more information, check out the `Asset Component documentation
<https://symfony.com/doc/current/components/asset/introduction.html>`_.
<https://symfony.com/doc/current/components/asset/introduction.html>`_.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment