Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add docs for the WebLink component #10309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Oct 30, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix build
  • Loading branch information
xabbuh committed Sep 11, 2018
commit 38fda884205e441463aa424e9927a6fabf621b05
8 changes: 4 additions & 4 deletions 8 weblink.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ and to enable Symfony features requiring the library.
It also generates a base HTML5 layout in the ``templates/`` directory.

Now, download Bootstrap_, extract the archive and copy the file
``dist/css/bootstrap.min.css`` in the ``public/`` directory of our
``dist/css/bootstrap.min.css`` in the ``public/`` directory of our
project.

Symfony comes with a `nice integration with of the most popular CSS framework`_.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/with//

Expand Down Expand Up @@ -123,7 +123,7 @@ Let's do it! Install the WebLink component:
composer req weblink

As for Twig, Symfony will automatically download and register this component into our app.
Now, update the template to use the ``preload`` Twig helper that
Now, update the template to use the ``preload`` Twig helper that
leverages the WebLink component:

.. code:: html+twig
Expand Down Expand Up @@ -151,7 +151,7 @@ How does it works?
The WebLink component tracks Link HTTP headers to add to the response.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing backticks around Link

When using the ``preload()`` helper, a ``Link`` header
with a `preload`_
``rel`` attribute is added to the response:
``rel`` attribute is added to the response:

.. image:: /_images/components/weblink/response-headers.png

Expand Down Expand Up @@ -263,7 +263,7 @@ While we're speaking about interoperability, WebLink can deal with any link impl

Thanks to Symfony WebLink, there is no excuses to not to switch to HTTP/2!

.. _`Web Linking`_: https://tools.ietf.org/html/rfc5988
.. _`Web Linking`: https://tools.ietf.org/html/rfc5988
.. _`HTTP/2 Server Push`: https://tools.ietf.org/html/rfc7540#section-8.2
.. _`Resource Hints`: https://www.w3.org/TR/resource-hints/
.. _`Twig`: https://twig.symfony.com/
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.