Skip to content

Commit 4e8d394

Browse files
committed
Shorten Twig ternary expression
1 parent 233174e commit 4e8d394

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/encore/server-data.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ method that returns an array, you could do the following:
3535

3636
.. code-block:: twig
3737
38-
<div data-user-profile="{{ app.user ? app.user.profileData|json_encode|e('html_attr') : '' }}">
38+
<div data-user-profile="{{ app.user ? app.user.profileData|json_encode|e('html_attr') }}">
3939
<!-- ... -->
4040
</div>
4141

0 commit comments

Comments
 (0)