generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from StyleShit/fix/includes-with-data
fix: includes with data sometimes throw exceptions
- Loading branch information
Showing
7 changed files
with
52 additions
and
6 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
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
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
10 changes: 10 additions & 0 deletions
10
tests/TestSupport/views/includes/include/page-with-data.blade.php
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
This is the start of the page | ||
|
||
@include('includes.include.include', [ | ||
'number' => 1, | ||
'string' => 'string', | ||
'array' => ['one', 'two', 'three'], | ||
'function_call' => __('test'), | ||
]) | ||
|
||
This is the end of the page |
10 changes: 10 additions & 0 deletions
10
tests/TestSupport/views/includes/includeIf/page-with-data.blade.php
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
This is the start of the page | ||
|
||
@includeIf('includes.includeIf.includeIf', [ | ||
'number' => 1, | ||
'string' => 'string', | ||
'array' => ['one', 'two', 'three'], | ||
'function_call' => __('test'), | ||
]) | ||
|
||
This is the end of the page |
7 changes: 7 additions & 0 deletions
7
tests/__snapshots__/BladeIncludeTest__it_will_add_comments_for_includeIf_with_data__1.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<html><body><p>This is the start of the page | ||
|
||
<!-- Start includeIf: includes.includeIf.includeIf -->This is the includeIf | ||
<!-- End includeIf: includes.includeIf.includeIf --> | ||
|
||
This is the end of the page | ||
</p></body></html> |
7 changes: 7 additions & 0 deletions
7
tests/__snapshots__/BladeIncludeTest__it_will_add_comments_for_includes_with_data__1.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<html><body><p>This is the start of the page | ||
|
||
<!-- Start include: includes.include.include -->This is the include | ||
<!-- End include: includes.include.include --> | ||
|
||
This is the end of the page | ||
</p></body></html> |