-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of replacing the HTML with a JSON response, a clean html output without header and unnecessary linebreaks will improve the readability in error case a lot. Related: #12
- Loading branch information
1 parent
14ad109
commit b5bea64
Showing
3 changed files
with
15 additions
and
13 deletions.
There are no files selected for viewing
9 changes: 8 additions & 1 deletion
9
Tests/Fixtures/base_example/Configuration/TypoScript/Rendering.typoscript
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,2 +1,9 @@ | ||
page = PAGE | ||
page.10 < styles.content.get | ||
page { | ||
10 < styles.content.get | ||
|
||
config { | ||
disableAllHeaderCode = 1 | ||
admPanel = 0 | ||
} | ||
} |
11 changes: 4 additions & 7 deletions
11
Tests/Fixtures/base_example/Resources/Private/Partials/FluidStyledContent/Media/Image.html
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,9 +1,6 @@ | ||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true"> | ||
|
||
<f:if condition="{image}"> | ||
<f:for each="{image.sizes}" as="size" iteration="sizeIterator"> | ||
{size.breakpoint.cropVariant} {size.size} {size.breakpoint.mediaQuery} | ||
</f:for> | ||
</f:if> | ||
|
||
<f:spaceless> | ||
<f:if condition="{image}"><f:for each="{image.sizes}" as="size" iteration="sizeIterator">{size.breakpoint.cropVariant} {size.size} {size.breakpoint.mediaQuery} | ||
</f:for></f:if> | ||
</f:spaceless> | ||
</html> |
8 changes: 3 additions & 5 deletions
8
Tests/Fixtures/base_example/Resources/Private/Templates/FluidStyledContent/Image.html
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,7 +1,5 @@ | ||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true"> | ||
|
||
<f:for each="{responsiveImages}" as="image"> | ||
<f:render partial="Media/Image" arguments="{image: image}"/> | ||
</f:for> | ||
|
||
<f:spaceless> | ||
<f:for each="{responsiveImages}" as="image"><f:render partial="Media/Image" arguments="{image: image}"/></f:for> | ||
</f:spaceless> | ||
</html> |