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
2611c1f2
Commit
2611c1f2
authored
Jul 31, 2012
by
Dayle Rees
Browse files
Options
Browse Files
Download
Plain Diff
fixing merge issue for blade comments pull
parents
9ea50183
75033f62
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
blade.php
laravel/blade.php
+3
-3
templating.md
laravel/documentation/views/templating.md
+6
-0
No files found.
laravel/blade.php
View file @
2611c1f2
...
@@ -186,9 +186,9 @@ class Blade {
...
@@ -186,9 +186,9 @@ class Blade {
*/
*/
protected
static
function
compile_comments
(
$value
)
protected
static
function
compile_comments
(
$value
)
{
{
$value
=
preg_replace
(
'/\{\{--(.
+?)(--\}\})?\n/s
'
,
"<?php // $1 ?>"
,
$value
);
$value
=
preg_replace
(
'/\{\{--(.
*?)--\}\}/
'
,
"<?php // $1 ?>"
,
$value
);
return
preg_replace
(
'/\{\{--(
(.|\s)*?)--\}\}/s'
,
"<?php /* $1 */ ?>
\n
"
,
$value
);
return
preg_replace
(
'/\{\{--(
.*?)--\}\}/s'
,
"<?php /* ?>$1<?php */ ?>
"
,
$value
);
}
}
/**
/**
...
...
laravel/documentation/views/templating.md
View file @
2611c1f2
...
@@ -132,6 +132,12 @@ Similarly, you can use **@render**, which behaves the same as **@include** excep
...
@@ -132,6 +132,12 @@ Similarly, you can use **@render**, which behaves the same as **@include** excep
{{-- This is a comment --}}
{{-- This is a comment --}}
...
...
@endif
@endif
{{--
This is
a multi-line
comment.
--}}
> **Note:** Blade comments, unlike HTML comments, are not visible in the HTML source.
> **Note:** Blade comments, unlike HTML comments, are not visible in the HTML source.
...
...
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