Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit de94b9e

Browse files
committed
Merge pull request #709 from symfony-cmf/improve-block-doc
better explain creating own block
2 parents 4d72961 + c0db354 commit de94b9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bundles/block/create_your_own_blocks.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Follow these steps to create a block:
1010
* render the block, see :ref:`bundle-block-rendering`;
1111

1212
Lets say you are working on a project where you have to integrate data
13-
received from several RSS feeds. Of course you could create an ActionBlock
14-
for each of these feeds, but wouldn't this be silly? In fact, all those actions
15-
would look similar: Receive data from a feed, sanitize it and pass the data to
16-
a template. So instead you decide to create your own block, the ``RssBlock``.
13+
received from several RSS feeds. You could create an ActionBlock for each of
14+
these feeds, but all those actions would look similar: Receive data from a
15+
feed, sanitize it and pass the data to a template. This would be code
16+
duplication, so instead you decide to create your own block, the ``RssBlock``.
1717

1818
.. tip::
1919

0 commit comments

Comments
 (0)