-
-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #2300 [Turbo] delete whitespace for
<twig:Turbo:Stream:*>
com…
…ponents (seb-jean) This PR was squashed before being merged into the 2.x branch. Discussion ---------- [Turbo] delete whitespace for `<twig:Turbo:Stream:*>` components | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no I added whitespace trimming for delete a whitespace for `<twig:Turbo:Stream:*>` components. Example with below code: ```twig <twig:Turbo:Stream:Append target="#count-post"> <div>12</div> </twig:Turbo:Stream:Append> ``` **Before** ```twig <turbo-stream action="append" targets="#count-post" > <template><div>12</div> </template> </turbo-stream> ``` **After** ```twig <turbo-stream action="append" targets="#count-post"> <template><div>12</div> </template> </turbo-stream> ``` Commits ------- 7f4d863 [Turbo] delete whitespace for `<twig:Turbo:Stream:*>` components
- Loading branch information
Showing
8 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{% props target -%} | ||
|
||
<turbo-stream action="after" targets="{{ target }}" {{ attributes }}> | ||
<turbo-stream action="after" targets="{{ target }}" {{- attributes }}> | ||
<template>{% block content %}{% endblock %}</template> | ||
</turbo-stream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{% props target -%} | ||
|
||
<turbo-stream action="append" targets="{{ target }}" {{ attributes }}> | ||
<turbo-stream action="append" targets="{{ target }}" {{- attributes }}> | ||
<template>{% block content %}{% endblock %}</template> | ||
</turbo-stream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{% props target -%} | ||
|
||
<turbo-stream action="before" targets="{{ target }}" {{ attributes }}> | ||
<turbo-stream action="before" targets="{{ target }}" {{- attributes }}> | ||
<template>{% block content %}{% endblock %}</template> | ||
</turbo-stream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{% props target -%} | ||
|
||
<turbo-stream action="prepend" targets="{{ target }}" {{ attributes }}> | ||
<turbo-stream action="prepend" targets="{{ target }}" {{- attributes }}> | ||
<template>{% block content %}{% endblock %}</template> | ||
</turbo-stream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{% props requestId = null -%} | ||
|
||
<turbo-stream action="refresh"{% if requestId is not null %} request-id="{{ requestId }}"{% endif %} {{ attributes }}></turbo-stream> | ||
<turbo-stream action="refresh"{% if requestId is not null %} request-id="{{ requestId }}"{% endif %} {{- attributes }}></turbo-stream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{% props target -%} | ||
|
||
<turbo-stream action="remove" targets="{{ target }}" {{ attributes }}></turbo-stream> | ||
<turbo-stream action="remove" targets="{{ target }}" {{- attributes }}></turbo-stream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{% props target, morph = false -%} | ||
|
||
<turbo-stream action="replace" targets="{{ target }}"{% if morph %} method="morph"{% endif %} {{ attributes }}> | ||
<turbo-stream action="replace" targets="{{ target }}"{% if morph %} method="morph"{% endif %} {{- attributes }}> | ||
<template>{% block content %}{% endblock %}</template> | ||
</turbo-stream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{% props target, morph = false -%} | ||
|
||
<turbo-stream action="update" targets="{{ target }}"{% if morph %} method="morph"{% endif %} {{ attributes }}> | ||
<turbo-stream action="update" targets="{{ target }}"{% if morph %} method="morph"{% endif %} {{- attributes }}> | ||
<template>{% block content %}{% endblock %}</template> | ||
</turbo-stream> |