Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
31786c96
Commit
31786c96
authored
Mar 23, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaning up the Blade class.
parent
93e21e92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
blade.php
laravel/blade.php
+3
-3
No files found.
laravel/blade.php
View file @
31786c96
...
@@ -108,7 +108,7 @@ class Blade {
...
@@ -108,7 +108,7 @@ class Blade {
{
{
// If the Blade template is not using "layouts", we'll just return it
// If the Blade template is not using "layouts", we'll just return it
// it unchanged since there is nothing to do with layouts and we'll
// it unchanged since there is nothing to do with layouts and we'll
// just let the other Blade compilers handle
i
t.
// just let the other Blade compilers handle
the res
t.
if
(
!
starts_with
(
$value
,
'@layout'
))
if
(
!
starts_with
(
$value
,
'@layout'
))
{
{
return
$value
;
return
$value
;
...
@@ -121,11 +121,11 @@ class Blade {
...
@@ -121,11 +121,11 @@ class Blade {
$layout
=
static
::
extract
(
$lines
[
0
],
'@layout'
);
$layout
=
static
::
extract
(
$lines
[
0
],
'@layout'
);
$lines
[]
=
"<?php echo render('
{
$layout
}
'); ?>"
;
// We will add a "render" statement to the end of the templates and
// We will add a "render" statement to the end of the templates and
// and then slice off the @layout shortcut from the start so the
// and then slice off the @layout shortcut from the start so the
// sections register before the parent template renders.
// sections register before the parent template renders.
$lines
[]
=
"<?php echo render('
{
$layout
}
'); ?>"
;
return
implode
(
CRLF
,
array_slice
(
$lines
,
1
));
return
implode
(
CRLF
,
array_slice
(
$lines
,
1
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment